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

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: Fixed nit 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 Optional<bool> enable_spdy_ping_based_connection_checking; 203 Optional<bool> enable_spdy_ping_based_connection_checking;
204 Optional<net::NextProto> spdy_default_protocol; 204 Optional<net::NextProto> spdy_default_protocol;
205 net::NextProtoVector next_protos; 205 net::NextProtoVector next_protos;
206 Optional<std::string> trusted_spdy_proxy; 206 Optional<std::string> trusted_spdy_proxy;
207 std::set<net::HostPortPair> forced_spdy_exclusions; 207 std::set<net::HostPortPair> forced_spdy_exclusions;
208 Optional<bool> use_alternative_services; 208 Optional<bool> use_alternative_services;
209 Optional<double> alternative_service_probability_threshold; 209 Optional<double> alternative_service_probability_threshold;
210 210
211 Optional<bool> enable_npn; 211 Optional<bool> enable_npn;
212 212
213 Optional<bool> enable_brotli;
214
213 Optional<bool> enable_quic; 215 Optional<bool> enable_quic;
214 Optional<bool> enable_quic_for_proxies; 216 Optional<bool> enable_quic_for_proxies;
215 Optional<bool> enable_quic_port_selection; 217 Optional<bool> enable_quic_port_selection;
216 Optional<bool> quic_always_require_handshake_confirmation; 218 Optional<bool> quic_always_require_handshake_confirmation;
217 Optional<bool> quic_disable_connection_pooling; 219 Optional<bool> quic_disable_connection_pooling;
218 Optional<float> quic_load_server_info_timeout_srtt_multiplier; 220 Optional<float> quic_load_server_info_timeout_srtt_multiplier;
219 Optional<bool> quic_enable_connection_racing; 221 Optional<bool> quic_enable_connection_racing;
220 Optional<bool> quic_enable_non_blocking_io; 222 Optional<bool> quic_enable_non_blocking_io;
221 Optional<bool> quic_disable_disk_cache; 223 Optional<bool> quic_disable_disk_cache;
222 Optional<bool> quic_prefer_aes; 224 Optional<bool> quic_prefer_aes;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 // well as the QUIC field trial group. 345 // well as the QUIC field trial group.
344 void ConfigureQuic(const base::CommandLine& command_line); 346 void ConfigureQuic(const base::CommandLine& command_line);
345 347
346 extensions::EventRouterForwarder* extension_event_router_forwarder() { 348 extensions::EventRouterForwarder* extension_event_router_forwarder() {
347 #if defined(ENABLE_EXTENSIONS) 349 #if defined(ENABLE_EXTENSIONS)
348 return extension_event_router_forwarder_; 350 return extension_event_router_forwarder_;
349 #else 351 #else
350 return NULL; 352 return NULL;
351 #endif 353 #endif
352 } 354 }
355
356 // Returns true if Brotli Content-Encoding should be enabled.
357 static bool ShouldEnableBrotli(const base::CommandLine& command_line);
358
353 // Configures QUIC options in |globals| based on the flags in |command_line| 359 // Configures QUIC options in |globals| based on the flags in |command_line|
354 // as well as the QUIC field trial group and parameters. Must be called 360 // as well as the QUIC field trial group and parameters. Must be called
355 // before ConfigureSpdyGlobals. 361 // before ConfigureSpdyGlobals.
356 static void ConfigureQuicGlobals( 362 static void ConfigureQuicGlobals(
357 const base::CommandLine& command_line, 363 const base::CommandLine& command_line,
358 base::StringPiece quic_trial_group, 364 base::StringPiece quic_trial_group,
359 const VariationParameters& quic_trial_params, 365 const VariationParameters& quic_trial_params,
360 bool quic_allowed_by_policy, 366 bool quic_allowed_by_policy,
361 Globals* globals); 367 Globals* globals);
362 368
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 bool is_quic_allowed_by_policy_; 564 bool is_quic_allowed_by_policy_;
559 565
560 const base::TimeTicks creation_time_; 566 const base::TimeTicks creation_time_;
561 567
562 base::WeakPtrFactory<IOThread> weak_factory_; 568 base::WeakPtrFactory<IOThread> weak_factory_;
563 569
564 DISALLOW_COPY_AND_ASSIGN(IOThread); 570 DISALLOW_COPY_AND_ASSIGN(IOThread);
565 }; 571 };
566 572
567 #endif // CHROME_BROWSER_IO_THREAD_H_ 573 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698