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 // the SPDY frame. Returns the size, in bytes, of the resulting | 30 // the SPDY frame. Returns the size, in bytes, of the resulting |
31 // SPDY frame. | 31 // SPDY frame. |
32 size_t WriteHeaders(QuicStreamId stream_id, | 32 size_t WriteHeaders(QuicStreamId stream_id, |
33 const SpdyHeaderBlock& headers, | 33 const SpdyHeaderBlock& headers, |
34 bool fin, | 34 bool fin, |
35 QuicPriority priority, | 35 QuicPriority priority, |
36 QuicAckListenerInterface* ack_notifier_delegate); | 36 QuicAckListenerInterface* ack_notifier_delegate); |
37 | 37 |
38 // ReliableQuicStream implementation | 38 // ReliableQuicStream implementation |
39 void OnDataAvailable() override; | 39 void OnDataAvailable() override; |
40 QuicPriority EffectivePriority() const override; | 40 QuicPriority Priority() const override; |
41 | 41 |
42 private: | 42 private: |
43 class SpdyFramerVisitor; | 43 class SpdyFramerVisitor; |
44 | 44 |
45 // The following methods are called by the SimpleVisitor. | 45 // The following methods are called by the SimpleVisitor. |
46 | 46 |
47 // Called when a SYN_STREAM frame has been received. | 47 // Called when a SYN_STREAM frame has been received. |
48 void OnSynStream(SpdyStreamId stream_id, | 48 void OnSynStream(SpdyStreamId stream_id, |
49 SpdyPriority priority, | 49 SpdyPriority priority, |
50 bool fin); | 50 bool fin); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 SpdyFramer spdy_framer_; | 90 SpdyFramer spdy_framer_; |
91 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; | 91 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); | 93 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace net | 96 } // namespace net |
97 | 97 |
98 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ | 98 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ |
OLD | NEW |