| 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 <memory> | 10 #include <memory> |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Called when SETTINGS_ENABLE_PUSH is received, only supported on | 94 // Called when SETTINGS_ENABLE_PUSH is received, only supported on |
| 95 // server side. | 95 // server side. |
| 96 void UpdateEnableServerPush(bool value); | 96 void UpdateEnableServerPush(bool value); |
| 97 | 97 |
| 98 // Sets how much encoded data the hpack decoder of spdy_framer_ is willing to | 98 // Sets how much encoded data the hpack decoder of spdy_framer_ is willing to |
| 99 // buffer. | 99 // buffer. |
| 100 void set_max_decode_buffer_size_bytes(size_t max_decode_buffer_size_bytes) { | 100 void set_max_decode_buffer_size_bytes(size_t max_decode_buffer_size_bytes) { |
| 101 spdy_framer_.set_max_decode_buffer_size_bytes(max_decode_buffer_size_bytes); | 101 spdy_framer_.set_max_decode_buffer_size_bytes(max_decode_buffer_size_bytes); |
| 102 } | 102 } |
| 103 | 103 |
| 104 void set_max_uncompressed_header_bytes( |
| 105 size_t set_max_uncompressed_header_bytes); |
| 106 |
| 104 private: | 107 private: |
| 105 friend class test::QuicHeadersStreamPeer; | 108 friend class test::QuicHeadersStreamPeer; |
| 106 | 109 |
| 107 class SpdyFramerVisitor; | 110 class SpdyFramerVisitor; |
| 108 | 111 |
| 109 // The following methods are called by the SimpleVisitor. | 112 // The following methods are called by the SimpleVisitor. |
| 110 | 113 |
| 111 // Called when a HEADERS frame has been received. | 114 // Called when a HEADERS frame has been received. |
| 112 void OnHeaders(SpdyStreamId stream_id, | 115 void OnHeaders(SpdyStreamId stream_id, |
| 113 bool has_priority, | 116 bool has_priority, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 169 |
| 167 SpdyFramer spdy_framer_; | 170 SpdyFramer spdy_framer_; |
| 168 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_; | 171 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_; |
| 169 | 172 |
| 170 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); | 173 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); |
| 171 }; | 174 }; |
| 172 | 175 |
| 173 } // namespace net | 176 } // namespace net |
| 174 | 177 |
| 175 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ | 178 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ |
| OLD | NEW |