| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void DisableHpackDynamicTable(); | 84 void DisableHpackDynamicTable(); |
| 85 | 85 |
| 86 // Optional, enables instrumentation related to go/quic-hpack. | 86 // Optional, enables instrumentation related to go/quic-hpack. |
| 87 void SetHpackEncoderDebugVisitor(std::unique_ptr<HpackDebugVisitor> visitor); | 87 void SetHpackEncoderDebugVisitor(std::unique_ptr<HpackDebugVisitor> visitor); |
| 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 |
| 95 // server side. |
| 96 void UpdateEnableServerPush(bool value); |
| 97 |
| 94 // 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 |
| 95 // buffer. | 99 // buffer. |
| 96 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) { |
| 97 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); |
| 98 } | 102 } |
| 99 | 103 |
| 100 private: | 104 private: |
| 101 friend class test::QuicHeadersStreamPeer; | 105 friend class test::QuicHeadersStreamPeer; |
| 102 | 106 |
| 103 class SpdyFramerVisitor; | 107 class SpdyFramerVisitor; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 169 |
| 166 // Either empty, or contains the complete list of headers. | 170 // Either empty, or contains the complete list of headers. |
| 167 QuicHeaderList header_list_; | 171 QuicHeaderList header_list_; |
| 168 | 172 |
| 169 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); | 173 DISALLOW_COPY_AND_ASSIGN(QuicHeadersStream); |
| 170 }; | 174 }; |
| 171 | 175 |
| 172 } // namespace net | 176 } // namespace net |
| 173 | 177 |
| 174 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ | 178 #endif // NET_QUIC_QUIC_HEADERS_STREAM_H_ |
| OLD | NEW |