| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual size_t WritePushPromise(QuicStreamId original_stream_id, | 42 virtual size_t WritePushPromise(QuicStreamId original_stream_id, |
| 43 QuicStreamId promised_stream_id, | 43 QuicStreamId promised_stream_id, |
| 44 const SpdyHeaderBlock& headers, | 44 const SpdyHeaderBlock& headers, |
| 45 QuicAckListenerInterface* ack_listener); | 45 QuicAckListenerInterface* ack_listener); |
| 46 | 46 |
| 47 // ReliableQuicStream implementation | 47 // ReliableQuicStream implementation |
| 48 void OnDataAvailable() override; | 48 void OnDataAvailable() override; |
| 49 | 49 |
| 50 bool supports_push_promise() { return supports_push_promise_; } | 50 bool supports_push_promise() { return supports_push_promise_; } |
| 51 | 51 |
| 52 // Experimental: force HPACK to use static table and huffman coding |
| 53 // only. Part of exploring improvements related to headers stream |
| 54 // induced HOL blocking in QUIC. |
| 55 void DisableHpackDynamicTable(); |
| 56 |
| 52 private: | 57 private: |
| 53 class SpdyFramerVisitor; | 58 class SpdyFramerVisitor; |
| 54 | 59 |
| 55 // The following methods are called by the SimpleVisitor. | 60 // The following methods are called by the SimpleVisitor. |
| 56 | 61 |
| 57 // Called when a HEADERS frame has been received. | 62 // Called when a HEADERS frame has been received. |
| 58 void OnHeaders(SpdyStreamId stream_id, | 63 void OnHeaders(SpdyStreamId stream_id, |
| 59 bool has_priority, | 64 bool has_priority, |
| 60 SpdyPriority priority, | 65 SpdyPriority priority, |
| 61 bool fin); | 66 bool fin); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 109 |
| 105 SpdyFramer spdy_framer_; | 110 SpdyFramer spdy_framer_; |
| 106 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; | 111 scoped_ptr<SpdyFramerVisitor> spdy_framer_visitor_; |
| 107 | 112 |
| 108 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); | 113 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); |
| 109 }; | 114 }; |
| 110 | 115 |
| 111 } // namespace net | 116 } // namespace net |
| 112 | 117 |
| 113 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ | 118 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ |
| OLD | NEW |