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