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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 Optional<bool> enable_tcp_fast_open_for_ssl; | 168 Optional<bool> enable_tcp_fast_open_for_ssl; |
169 | 169 |
170 Optional<size_t> initial_max_spdy_concurrent_streams; | 170 Optional<size_t> initial_max_spdy_concurrent_streams; |
171 Optional<bool> enable_spdy_compression; | 171 Optional<bool> enable_spdy_compression; |
172 Optional<bool> enable_spdy_ping_based_connection_checking; | 172 Optional<bool> enable_spdy_ping_based_connection_checking; |
173 Optional<net::NextProto> spdy_default_protocol; | 173 Optional<net::NextProto> spdy_default_protocol; |
174 net::NextProtoVector next_protos; | 174 net::NextProtoVector next_protos; |
175 Optional<std::string> trusted_spdy_proxy; | 175 Optional<std::string> trusted_spdy_proxy; |
176 std::set<net::HostPortPair> forced_spdy_exclusions; | 176 std::set<net::HostPortPair> forced_spdy_exclusions; |
177 Optional<bool> use_alternate_protocols; | 177 Optional<bool> use_alternate_protocols; |
178 Optional<double> alternate_protocol_probability_threshold; | 178 Optional<double> alternative_service_probability_threshold; |
179 | 179 |
180 Optional<bool> enable_quic; | 180 Optional<bool> enable_quic; |
181 Optional<bool> enable_quic_for_proxies; | 181 Optional<bool> enable_quic_for_proxies; |
182 Optional<bool> enable_quic_port_selection; | 182 Optional<bool> enable_quic_port_selection; |
183 Optional<bool> quic_always_require_handshake_confirmation; | 183 Optional<bool> quic_always_require_handshake_confirmation; |
184 Optional<bool> quic_disable_connection_pooling; | 184 Optional<bool> quic_disable_connection_pooling; |
185 Optional<float> quic_load_server_info_timeout_srtt_multiplier; | 185 Optional<float> quic_load_server_info_timeout_srtt_multiplier; |
186 Optional<bool> quic_enable_connection_racing; | 186 Optional<bool> quic_enable_connection_racing; |
187 Optional<bool> quic_enable_non_blocking_io; | 187 Optional<bool> quic_enable_non_blocking_io; |
188 Optional<bool> quic_disable_disk_cache; | 188 Optional<bool> quic_disable_disk_cache; |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 // Returns the QUIC version specified by |quic_version| or | 404 // Returns the QUIC version specified by |quic_version| or |
405 // QUIC_VERSION_UNSUPPORTED if |quic_version| is invalid. | 405 // QUIC_VERSION_UNSUPPORTED if |quic_version| is invalid. |
406 static net::QuicVersion ParseQuicVersion(const std::string& quic_version); | 406 static net::QuicVersion ParseQuicVersion(const std::string& quic_version); |
407 | 407 |
408 // Returns the QUIC connection options specified by any flags in | 408 // Returns the QUIC connection options specified by any flags in |
409 // |command_line| or |quic_trial_params|. | 409 // |command_line| or |quic_trial_params|. |
410 static net::QuicTagVector GetQuicConnectionOptions( | 410 static net::QuicTagVector GetQuicConnectionOptions( |
411 const base::CommandLine& command_line, | 411 const base::CommandLine& command_line, |
412 const VariationParameters& quic_trial_params); | 412 const VariationParameters& quic_trial_params); |
413 | 413 |
414 // Returns the alternate protocol probability threshold specified by | 414 // Returns the alternative service probability threshold specified by |
415 // any flags in |command_line| or |quic_trial_params|. | 415 // any flags in |command_line| or |quic_trial_params|. |
416 static double GetAlternateProtocolProbabilityThreshold( | 416 static double GetAlternativeProtocolProbabilityThreshold( |
417 const base::CommandLine& command_line, | 417 const base::CommandLine& command_line, |
418 const VariationParameters& quic_trial_params); | 418 const VariationParameters& quic_trial_params); |
419 | 419 |
420 // The NetLog is owned by the browser process, to allow logging from other | 420 // The NetLog is owned by the browser process, to allow logging from other |
421 // threads during shutdown, but is used most frequently on the IOThread. | 421 // threads during shutdown, but is used most frequently on the IOThread. |
422 ChromeNetLog* net_log_; | 422 ChromeNetLog* net_log_; |
423 | 423 |
424 #if defined(ENABLE_EXTENSIONS) | 424 #if defined(ENABLE_EXTENSIONS) |
425 // The extensions::EventRouterForwarder allows for sending events to | 425 // The extensions::EventRouterForwarder allows for sending events to |
426 // extensions from the IOThread. | 426 // extensions from the IOThread. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 bool is_spdy_disabled_by_policy_; | 472 bool is_spdy_disabled_by_policy_; |
473 | 473 |
474 const base::TimeTicks creation_time_; | 474 const base::TimeTicks creation_time_; |
475 | 475 |
476 base::WeakPtrFactory<IOThread> weak_factory_; | 476 base::WeakPtrFactory<IOThread> weak_factory_; |
477 | 477 |
478 DISALLOW_COPY_AND_ASSIGN(IOThread); | 478 DISALLOW_COPY_AND_ASSIGN(IOThread); |
479 }; | 479 }; |
480 | 480 |
481 #endif // CHROME_BROWSER_IO_THREAD_H_ | 481 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |