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