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

Side by Side Diff: chrome/browser/io_thread.h

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Accept-Ecnoding test Created 5 years 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 CHROME_BROWSER_IO_THREAD_H_ 5 #ifndef CHROME_BROWSER_IO_THREAD_H_
6 #define CHROME_BROWSER_IO_THREAD_H_ 6 #define CHROME_BROWSER_IO_THREAD_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 Optional<bool> enable_spdy_ping_based_connection_checking; 202 Optional<bool> enable_spdy_ping_based_connection_checking;
203 Optional<net::NextProto> spdy_default_protocol; 203 Optional<net::NextProto> spdy_default_protocol;
204 net::NextProtoVector next_protos; 204 net::NextProtoVector next_protos;
205 Optional<std::string> trusted_spdy_proxy; 205 Optional<std::string> trusted_spdy_proxy;
206 std::set<net::HostPortPair> forced_spdy_exclusions; 206 std::set<net::HostPortPair> forced_spdy_exclusions;
207 Optional<bool> use_alternative_services; 207 Optional<bool> use_alternative_services;
208 Optional<double> alternative_service_probability_threshold; 208 Optional<double> alternative_service_probability_threshold;
209 209
210 Optional<bool> enable_npn; 210 Optional<bool> enable_npn;
211 211
212 Optional<bool> enable_brotli;
213
212 Optional<bool> enable_quic; 214 Optional<bool> enable_quic;
213 Optional<bool> enable_quic_for_proxies; 215 Optional<bool> enable_quic_for_proxies;
214 Optional<bool> enable_quic_port_selection; 216 Optional<bool> enable_quic_port_selection;
215 Optional<bool> quic_always_require_handshake_confirmation; 217 Optional<bool> quic_always_require_handshake_confirmation;
216 Optional<bool> quic_disable_connection_pooling; 218 Optional<bool> quic_disable_connection_pooling;
217 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 219 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
218 Optional<bool> quic_enable_connection_racing; 220 Optional<bool> quic_enable_connection_racing;
219 Optional<bool> quic_enable_non_blocking_io; 221 Optional<bool> quic_enable_non_blocking_io;
220 Optional<bool> quic_disable_disk_cache; 222 Optional<bool> quic_disable_disk_cache;
221 Optional<bool> quic_prefer_aes; 223 Optional<bool> quic_prefer_aes;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // well as the QUIC field trial group. 339 // well as the QUIC field trial group.
338 void ConfigureQuic(const base::CommandLine& command_line); 340 void ConfigureQuic(const base::CommandLine& command_line);
339 341
340 extensions::EventRouterForwarder* extension_event_router_forwarder() { 342 extensions::EventRouterForwarder* extension_event_router_forwarder() {
341 #if defined(ENABLE_EXTENSIONS) 343 #if defined(ENABLE_EXTENSIONS)
342 return extension_event_router_forwarder_; 344 return extension_event_router_forwarder_;
343 #else 345 #else
344 return NULL; 346 return NULL;
345 #endif 347 #endif
346 } 348 }
349
350 // Returns true if Brotli Content-Encoding should be enabled.
351 static bool ShouldEnableBrotli(const base::CommandLine& command_line);
352
347 // Configures QUIC options in |globals| based on the flags in |command_line| 353 // Configures QUIC options in |globals| based on the flags in |command_line|
348 // as well as the QUIC field trial group and parameters. Must be called 354 // as well as the QUIC field trial group and parameters. Must be called
349 // before ConfigureSpdyGlobals. 355 // before ConfigureSpdyGlobals.
350 static void ConfigureQuicGlobals( 356 static void ConfigureQuicGlobals(
351 const base::CommandLine& command_line, 357 const base::CommandLine& command_line,
352 base::StringPiece quic_trial_group, 358 base::StringPiece quic_trial_group,
353 const VariationParameters& quic_trial_params, 359 const VariationParameters& quic_trial_params,
354 bool quic_allowed_by_policy, 360 bool quic_allowed_by_policy,
355 Globals* globals); 361 Globals* globals);
356 362
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 bool is_quic_allowed_by_policy_; 542 bool is_quic_allowed_by_policy_;
537 543
538 const base::TimeTicks creation_time_; 544 const base::TimeTicks creation_time_;
539 545
540 base::WeakPtrFactory<IOThread> weak_factory_; 546 base::WeakPtrFactory<IOThread> weak_factory_;
541 547
542 DISALLOW_COPY_AND_ASSIGN(IOThread); 548 DISALLOW_COPY_AND_ASSIGN(IOThread);
543 }; 549 };
544 550
545 #endif // CHROME_BROWSER_IO_THREAD_H_ 551 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/io_thread.cc » ('j') | net/filter/filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698