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

Side by Side Diff: net/http/http_network_session.h

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments, moved feature declatation to content Created 4 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_HTTP_HTTP_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 std::set<HostPortPair> forced_spdy_exclusions; 108 std::set<HostPortPair> forced_spdy_exclusions;
109 // Process Alt-Svc headers. 109 // Process Alt-Svc headers.
110 bool use_alternative_services; 110 bool use_alternative_services;
111 // Only honor alternative service entries which have a higher probability 111 // Only honor alternative service entries which have a higher probability
112 // than this value. 112 // than this value.
113 double alternative_service_probability_threshold; 113 double alternative_service_probability_threshold;
114 114
115 // Enables NPN support. Note that ALPN is always enabled. 115 // Enables NPN support. Note that ALPN is always enabled.
116 bool enable_npn; 116 bool enable_npn;
117 117
118 // Enables Brotli Content-Encoding support.
119 bool enable_brotli;
120
118 // Enables QUIC support. 121 // Enables QUIC support.
119 bool enable_quic; 122 bool enable_quic;
120 // Enables QUIC for proxies. 123 // Enables QUIC for proxies.
121 bool enable_quic_for_proxies; 124 bool enable_quic_for_proxies;
122 // Instruct QUIC to use consistent ephemeral ports when talking to 125 // Instruct QUIC to use consistent ephemeral ports when talking to
123 // the same server. 126 // the same server.
124 bool enable_quic_port_selection; 127 bool enable_quic_port_selection;
125 // Disables QUIC's 0-RTT behavior. 128 // Disables QUIC's 0-RTT behavior.
126 bool quic_always_require_handshake_confirmation; 129 bool quic_always_require_handshake_confirmation;
127 // Disables QUIC connection pooling. 130 // Disables QUIC connection pooling.
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 293
291 NextProtoVector next_protos_; 294 NextProtoVector next_protos_;
292 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; 295 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
293 296
294 Params params_; 297 Params params_;
295 }; 298 };
296 299
297 } // namespace net 300 } // namespace net
298 301
299 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 302 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698