| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 98 // Release underlying buffer if allowed. |
| 99 void MaybeReleaseSequencerBuffer(); | 99 void MaybeReleaseSequencerBuffer(); |
| 100 | 100 |
| 101 // Sends SETTINGS_MAX_HEADER_LIST_SIZE SETTINGS frame. |
| 102 size_t SendMaxHeaderListSize(size_t value); |
| 103 |
| 101 // Sets how much encoded data the hpack decoder of spdy_framer_ is willing to | 104 // Sets how much encoded data the hpack decoder of spdy_framer_ is willing to |
| 102 // buffer. | 105 // buffer. |
| 103 void set_max_decode_buffer_size_bytes(size_t max_decode_buffer_size_bytes) { | 106 void set_max_decode_buffer_size_bytes(size_t max_decode_buffer_size_bytes) { |
| 104 spdy_framer_.set_max_decode_buffer_size_bytes(max_decode_buffer_size_bytes); | 107 spdy_framer_.set_max_decode_buffer_size_bytes(max_decode_buffer_size_bytes); |
| 105 } | 108 } |
| 106 | 109 |
| 107 void set_max_uncompressed_header_bytes( | 110 void set_max_uncompressed_header_bytes( |
| 108 size_t set_max_uncompressed_header_bytes); | 111 size_t set_max_uncompressed_header_bytes); |
| 109 | 112 |
| 110 private: | 113 private: |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 165 |
| 163 SpdyFramer spdy_framer_; | 166 SpdyFramer spdy_framer_; |
| 164 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_; | 167 std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_; |
| 165 | 168 |
| 166 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); | 169 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); |
| 167 }; | 170 }; |
| 168 | 171 |
| 169 } // namespace net | 172 } // namespace net |
| 170 | 173 |
| 171 #endif // NET_QUIC_CORE_QUIC_HEADERS_STREAM_H_ | 174 #endif // NET_QUIC_CORE_QUIC_HEADERS_STREAM_H_ |
| OLD | NEW |