OLD | NEW |
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 Loading... |
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 virtual uint32 ProcessRawData(const char* data, uint32 data_len) OVERRIDE; | 37 virtual uint32 ProcessRawData(const char* data, uint32 data_len) OVERRIDE; |
38 virtual QuicPriority EffectivePriority() const OVERRIDE; | 38 virtual QuicPriority EffectivePriority() const OVERRIDE; |
39 | 39 |
40 // Headers stream is special and is not flow controlled. | |
41 virtual bool IsFlowControlEnabled() const OVERRIDE; | |
42 | |
43 private: | 40 private: |
44 class SpdyFramerVisitor; | 41 class SpdyFramerVisitor; |
45 | 42 |
46 // The following methods are called by the SimpleVisitor. | 43 // The following methods are called by the SimpleVisitor. |
47 | 44 |
48 // Called when a SYN_STREAM frame has been received. | 45 // Called when a SYN_STREAM frame has been received. |
49 void OnSynStream(SpdyStreamId stream_id, | 46 void OnSynStream(SpdyStreamId stream_id, |
50 SpdyPriority priority, | 47 SpdyPriority priority, |
51 bool fin); | 48 bool fin); |
52 | 49 |
(...skipping 23 matching lines...) Expand all Loading... |
76 | 73 |
77 SpdyFramer spdy_framer_; | 74 SpdyFramer spdy_framer_; |
78 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; | 75 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; |
79 | 76 |
80 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); | 77 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); |
81 }; | 78 }; |
82 | 79 |
83 } // namespace net | 80 } // namespace net |
84 | 81 |
85 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ | 82 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ |
OLD | NEW |