Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: net/quic/core/quic_headers_stream.h

Issue 2350173005: QUIC enable server push by default. Guarded by FLAGS_quic_enable_server_push_by_default. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_headers_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_headers_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698