| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 Optional<bool> force_spdy_single_domain; | 165 Optional<bool> force_spdy_single_domain; |
| 166 Optional<bool> enable_spdy_compression; | 166 Optional<bool> enable_spdy_compression; |
| 167 Optional<bool> enable_spdy_ping_based_connection_checking; | 167 Optional<bool> enable_spdy_ping_based_connection_checking; |
| 168 Optional<net::NextProto> spdy_default_protocol; | 168 Optional<net::NextProto> spdy_default_protocol; |
| 169 net::NextProtoVector next_protos; | 169 net::NextProtoVector next_protos; |
| 170 Optional<string> trusted_spdy_proxy; | 170 Optional<string> trusted_spdy_proxy; |
| 171 Optional<bool> force_spdy_over_ssl; | 171 Optional<bool> force_spdy_over_ssl; |
| 172 Optional<bool> force_spdy_always; | 172 Optional<bool> force_spdy_always; |
| 173 std::set<net::HostPortPair> forced_spdy_exclusions; | 173 std::set<net::HostPortPair> forced_spdy_exclusions; |
| 174 Optional<bool> use_alternate_protocols; | 174 Optional<bool> use_alternate_protocols; |
| 175 Optional<double> alternate_protocol_probability_threshold; |
| 175 Optional<bool> enable_websocket_over_spdy; | 176 Optional<bool> enable_websocket_over_spdy; |
| 176 | 177 |
| 177 Optional<bool> enable_quic; | 178 Optional<bool> enable_quic; |
| 178 Optional<bool> enable_quic_pacing; | 179 Optional<bool> enable_quic_pacing; |
| 179 Optional<bool> enable_quic_time_based_loss_detection; | 180 Optional<bool> enable_quic_time_based_loss_detection; |
| 180 Optional<bool> enable_quic_port_selection; | 181 Optional<bool> enable_quic_port_selection; |
| 181 Optional<size_t> quic_max_packet_length; | 182 Optional<size_t> quic_max_packet_length; |
| 182 net::QuicTagVector quic_connection_options; | 183 net::QuicTagVector quic_connection_options; |
| 183 Optional<std::string> quic_user_agent_id; | 184 Optional<std::string> quic_user_agent_id; |
| 184 Optional<net::QuicVersionVector> quic_supported_versions; | 185 Optional<net::QuicVersionVector> quic_supported_versions; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // |command_line| or |quic_trial_params|. | 352 // |command_line| or |quic_trial_params|. |
| 352 static net::QuicTagVector GetQuicConnectionOptions( | 353 static net::QuicTagVector GetQuicConnectionOptions( |
| 353 const base::CommandLine& command_line, | 354 const base::CommandLine& command_line, |
| 354 const VariationParameters& quic_trial_params); | 355 const VariationParameters& quic_trial_params); |
| 355 | 356 |
| 356 // Returns the list of QUIC tags represented by the comma separated | 357 // Returns the list of QUIC tags represented by the comma separated |
| 357 // string in |connection_options|. | 358 // string in |connection_options|. |
| 358 static net::QuicTagVector ParseQuicConnectionOptions( | 359 static net::QuicTagVector ParseQuicConnectionOptions( |
| 359 const std::string& connection_options); | 360 const std::string& connection_options); |
| 360 | 361 |
| 362 // Returns the alternate protocol probability threshold specified by |
| 363 // any flags in |command_line| or |quic_trial_params|. |
| 364 static double GetAlternateProtocolProbabilityThreshold( |
| 365 const base::CommandLine& command_line, |
| 366 const VariationParameters& quic_trial_params); |
| 367 |
| 361 // The NetLog is owned by the browser process, to allow logging from other | 368 // The NetLog is owned by the browser process, to allow logging from other |
| 362 // threads during shutdown, but is used most frequently on the IOThread. | 369 // threads during shutdown, but is used most frequently on the IOThread. |
| 363 ChromeNetLog* net_log_; | 370 ChromeNetLog* net_log_; |
| 364 | 371 |
| 365 // The extensions::EventRouterForwarder allows for sending events to | 372 // The extensions::EventRouterForwarder allows for sending events to |
| 366 // extensions from the IOThread. | 373 // extensions from the IOThread. |
| 367 extensions::EventRouterForwarder* extension_event_router_forwarder_; | 374 extensions::EventRouterForwarder* extension_event_router_forwarder_; |
| 368 | 375 |
| 369 // These member variables are basically global, but their lifetimes are tied | 376 // These member variables are basically global, but their lifetimes are tied |
| 370 // to the IOThread. IOThread owns them all, despite not using scoped_ptr. | 377 // to the IOThread. IOThread owns them all, despite not using scoped_ptr. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 bool is_spdy_disabled_by_policy_; | 418 bool is_spdy_disabled_by_policy_; |
| 412 | 419 |
| 413 base::WeakPtrFactory<IOThread> weak_factory_; | 420 base::WeakPtrFactory<IOThread> weak_factory_; |
| 414 | 421 |
| 415 const base::TimeTicks creation_time_; | 422 const base::TimeTicks creation_time_; |
| 416 | 423 |
| 417 DISALLOW_COPY_AND_ASSIGN(IOThread); | 424 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 418 }; | 425 }; |
| 419 | 426 |
| 420 #endif // CHROME_BROWSER_IO_THREAD_H_ | 427 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |