| 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_CORE_QUIC_HEADERS_STREAM_H_ | 5 #ifndef NET_QUIC_CORE_QUIC_HEADERS_STREAM_H_ |
| 6 #define NET_QUIC_CORE_QUIC_HEADERS_STREAM_H_ | 6 #define NET_QUIC_CORE_QUIC_HEADERS_STREAM_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 void SetHpackDecoderDebugVisitor(std::unique_ptr<HpackDebugVisitor> visitor); | 88 void SetHpackDecoderDebugVisitor(std::unique_ptr<HpackDebugVisitor> visitor); |
| 89 | 89 |
| 90 // Sets the maximum size of the header compression table spdy_framer_ is | 90 // Sets the maximum size of the header compression table spdy_framer_ is |
| 91 // willing to use to decode header blocks. | 91 // willing to use to decode header blocks. |
| 92 void UpdateHeaderEncoderTableSize(uint32_t value); | 92 void UpdateHeaderEncoderTableSize(uint32_t value); |
| 93 | 93 |
| 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 // Release underlying buffer if allowed. |
| 99 void MaybeReleaseSequencerBuffer(); |
| 100 |
| 98 // Sets how much encoded data the hpack decoder of spdy_framer_ is willing to | 101 // Sets how much encoded data the hpack decoder of spdy_framer_ is willing to |
| 99 // buffer. | 102 // buffer. |
| 100 void set_max_decode_buffer_size_bytes(size_t max_decode_buffer_size_bytes) { | 103 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); | 104 spdy_framer_.set_max_decode_buffer_size_bytes(max_decode_buffer_size_bytes); |
| 102 } | 105 } |
| 103 | 106 |
| 104 void set_max_uncompressed_header_bytes( | 107 void set_max_uncompressed_header_bytes( |
| 105 size_t set_max_uncompressed_header_bytes); | 108 size_t set_max_uncompressed_header_bytes); |
| 106 | 109 |
| 107 private: | 110 private: |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 162 |
| 160 SpdyFramer spdy_framer_; | 163 SpdyFramer spdy_framer_; |
| 161 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_; | 164 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_; |
| 162 | 165 |
| 163 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); | 166 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); |
| 164 }; | 167 }; |
| 165 | 168 |
| 166 } // namespace net | 169 } // namespace net |
| 167 | 170 |
| 168 #endif // NET_QUIC_CORE_QUIC_HEADERS_STREAM_H_ | 171 #endif // NET_QUIC_CORE_QUIC_HEADERS_STREAM_H_ |
| OLD | NEW |