Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: net/quic/quic_headers_stream.h

Issue 848443004: Adds QUIC_VERSION_24 which uses SPDY/4 header compression instead of SPDY/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0114
Patch Set: Changes to make version 24 to work with chromium unittests Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_headers_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_QUIC_HEADERS_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_HEADERS_STREAM_H_
6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_ 6 #define NET_QUIC_QUIC_HEADERS_STREAM_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 19 matching lines...) Expand all
30 size_t WriteHeaders( 30 size_t WriteHeaders(
31 QuicStreamId stream_id, 31 QuicStreamId stream_id,
32 const SpdyHeaderBlock& headers, 32 const SpdyHeaderBlock& headers,
33 bool fin, 33 bool fin,
34 QuicAckNotifier::DelegateInterface* ack_notifier_delegate); 34 QuicAckNotifier::DelegateInterface* ack_notifier_delegate);
35 35
36 // ReliableQuicStream implementation 36 // ReliableQuicStream implementation
37 uint32 ProcessRawData(const char* data, uint32 data_len) override; 37 uint32 ProcessRawData(const char* data, uint32 data_len) override;
38 QuicPriority EffectivePriority() const override; 38 QuicPriority EffectivePriority() const override;
39 39
40 void OnSuccessfulVersionNegotiation(QuicVersion version);
41
40 private: 42 private:
41 class SpdyFramerVisitor; 43 class SpdyFramerVisitor;
42 44
45 void InitializeFramer(QuicVersion version);
46
43 // The following methods are called by the SimpleVisitor. 47 // The following methods are called by the SimpleVisitor.
44 48
45 // Called when a SYN_STREAM frame has been received. 49 // Called when a SYN_STREAM frame has been received.
46 void OnSynStream(SpdyStreamId stream_id, 50 void OnSynStream(SpdyStreamId stream_id,
47 SpdyPriority priority, 51 SpdyPriority priority,
48 bool fin); 52 bool fin);
49 53
50 // Called when a SYN_REPLY frame been received. 54 // Called when a SYN_REPLY frame been received.
51 void OnSynReply(SpdyStreamId stream_id, bool fin); 55 void OnSynReply(SpdyStreamId stream_id, bool fin);
52 56
(...skipping 11 matching lines...) Expand all
64 void OnCompressedFrameSize(size_t frame_len); 68 void OnCompressedFrameSize(size_t frame_len);
65 69
66 // Returns true if the session is still connected. 70 // Returns true if the session is still connected.
67 bool IsConnected(); 71 bool IsConnected();
68 72
69 // Data about the stream whose headers are being processed. 73 // Data about the stream whose headers are being processed.
70 QuicStreamId stream_id_; 74 QuicStreamId stream_id_;
71 bool fin_; 75 bool fin_;
72 size_t frame_len_; 76 size_t frame_len_;
73 77
74 SpdyFramer spdy_framer_; 78 scoped_ptr<SpdyFramer> spdy_framer_;
75 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; 79 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_;
76 80
77 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); 81 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream);
78 }; 82 };
79 83
80 } // namespace net 84 } // namespace net
81 85
82 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ 86 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_headers_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698