diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-11 07:48:28 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-02-11 07:48:28 +0100 |
commit | bb9e155841de0e0fce81183a2fe6471f5c4df288 (patch) | |
tree | 4e7d1f77a0747b6a9e430f7406047d6c8ddf383a /netwerk/protocol/http/Http2Session.h | |
parent | aaa70dac618e0f56ea3fbe307f3a157360a79069 (diff) | |
download | UXP-bb9e155841de0e0fce81183a2fe6471f5c4df288.tar UXP-bb9e155841de0e0fce81183a2fe6471f5c4df288.tar.gz UXP-bb9e155841de0e0fce81183a2fe6471f5c4df288.tar.lz UXP-bb9e155841de0e0fce81183a2fe6471f5c4df288.tar.xz UXP-bb9e155841de0e0fce81183a2fe6471f5c4df288.zip |
Bug 1322373 - TLS 1.3 early-data for http/2
Diffstat (limited to 'netwerk/protocol/http/Http2Session.h')
-rw-r--r-- | netwerk/protocol/http/Http2Session.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/netwerk/protocol/http/Http2Session.h b/netwerk/protocol/http/Http2Session.h index 60986381b..b4ddeb5ec 100644 --- a/netwerk/protocol/http/Http2Session.h +++ b/netwerk/protocol/http/Http2Session.h @@ -43,12 +43,13 @@ public: NS_DECL_NSAHTTPSEGMENTREADER NS_DECL_NSAHTTPSEGMENTWRITER - Http2Session(nsISocketTransport *, uint32_t version); + Http2Session(nsISocketTransport *, uint32_t version, bool attemptingEarlyData); bool AddStream(nsAHttpTransaction *, int32_t, bool, nsIInterfaceRequestor *) override; bool CanReuse() override { return !mShouldGoAway && !mClosed; } bool RoomForMoreStreams() override; + uint32_t SpdyVersion() override; // When the connection is active this is called up to once every 1 second // return the interval (in seconds) that the connection next wants to @@ -235,6 +236,8 @@ public: // overload of nsAHttpTransaction nsresult ReadSegmentsAgain(nsAHttpSegmentReader *, uint32_t, uint32_t *, bool *) override final; nsresult WriteSegmentsAgain(nsAHttpSegmentWriter *, uint32_t , uint32_t *, bool *) override final; + bool Do0RTT() override final { return true; } + nsresult Finish0RTT(bool aRestart, bool aAlpnChanged) override final; private: @@ -492,6 +495,10 @@ private: bool mUseH2Deps; + bool mAttemptingEarlyData; + // The ID(s) of the stream(s) that we are getting 0RTT data from. + nsTArray<uint32_t> m0RTTStreams; + private: /// connect tunnels void DispatchOnTunnel(nsAHttpTransaction *, nsIInterfaceRequestor *); |