| OLD | NEW |
| 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 Loading... |
| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 // well as the QUIC field trial group. | 341 // well as the QUIC field trial group. |
| 340 void ConfigureQuic(const base::CommandLine& command_line); | 342 void ConfigureQuic(const base::CommandLine& command_line); |
| 341 | 343 |
| 342 extensions::EventRouterForwarder* extension_event_router_forwarder() { | 344 extensions::EventRouterForwarder* extension_event_router_forwarder() { |
| 343 #if defined(ENABLE_EXTENSIONS) | 345 #if defined(ENABLE_EXTENSIONS) |
| 344 return extension_event_router_forwarder_; | 346 return extension_event_router_forwarder_; |
| 345 #else | 347 #else |
| 346 return NULL; | 348 return NULL; |
| 347 #endif | 349 #endif |
| 348 } | 350 } |
| 351 |
| 352 // Returns true if Brotli Content-Encoding should be enabled. |
| 353 static bool ShouldEnableBrotli(const base::CommandLine& command_line); |
| 354 |
| 349 // Configures QUIC options in |globals| based on the flags in |command_line| | 355 // Configures QUIC options in |globals| based on the flags in |command_line| |
| 350 // as well as the QUIC field trial group and parameters. Must be called | 356 // as well as the QUIC field trial group and parameters. Must be called |
| 351 // before ConfigureSpdyGlobals. | 357 // before ConfigureSpdyGlobals. |
| 352 static void ConfigureQuicGlobals( | 358 static void ConfigureQuicGlobals( |
| 353 const base::CommandLine& command_line, | 359 const base::CommandLine& command_line, |
| 354 base::StringPiece quic_trial_group, | 360 base::StringPiece quic_trial_group, |
| 355 const VariationParameters& quic_trial_params, | 361 const VariationParameters& quic_trial_params, |
| 356 bool quic_allowed_by_policy, | 362 bool quic_allowed_by_policy, |
| 357 Globals* globals); | 363 Globals* globals); |
| 358 | 364 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 bool is_quic_allowed_by_policy_; | 550 bool is_quic_allowed_by_policy_; |
| 545 | 551 |
| 546 const base::TimeTicks creation_time_; | 552 const base::TimeTicks creation_time_; |
| 547 | 553 |
| 548 base::WeakPtrFactory<IOThread> weak_factory_; | 554 base::WeakPtrFactory<IOThread> weak_factory_; |
| 549 | 555 |
| 550 DISALLOW_COPY_AND_ASSIGN(IOThread); | 556 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 551 }; | 557 }; |
| 552 | 558 |
| 553 #endif // CHROME_BROWSER_IO_THREAD_H_ | 559 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |