| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ | 5 #ifndef IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ |
| 6 #define IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ | 6 #define IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings; | 131 scoped_ptr<net::HttpUserAgentSettings> http_user_agent_settings; |
| 132 scoped_ptr<net::NetworkQualityEstimator> network_quality_estimator; | 132 scoped_ptr<net::NetworkQualityEstimator> network_quality_estimator; |
| 133 uint16_t testing_fixed_http_port; | 133 uint16_t testing_fixed_http_port; |
| 134 uint16_t testing_fixed_https_port; | 134 uint16_t testing_fixed_https_port; |
| 135 Optional<bool> enable_tcp_fast_open_for_ssl; | 135 Optional<bool> enable_tcp_fast_open_for_ssl; |
| 136 | 136 |
| 137 Optional<bool> enable_spdy31; | 137 Optional<bool> enable_spdy31; |
| 138 Optional<bool> enable_http2; | 138 Optional<bool> enable_http2; |
| 139 Optional<bool> parse_alternative_services; | 139 Optional<bool> parse_alternative_services; |
| 140 Optional<bool> enable_alternative_service_with_different_host; | 140 Optional<bool> enable_alternative_service_with_different_host; |
| 141 Optional<double> alternative_service_probability_threshold; |
| 141 | 142 |
| 142 Optional<bool> enable_npn; | 143 Optional<bool> enable_npn; |
| 143 | 144 |
| 144 Optional<bool> enable_quic; | 145 Optional<bool> enable_quic; |
| 145 Optional<bool> enable_quic_for_proxies; | 146 Optional<bool> enable_quic_for_proxies; |
| 146 Optional<bool> quic_always_require_handshake_confirmation; | 147 Optional<bool> quic_always_require_handshake_confirmation; |
| 147 Optional<bool> quic_disable_connection_pooling; | 148 Optional<bool> quic_disable_connection_pooling; |
| 148 Optional<float> quic_load_server_info_timeout_srtt_multiplier; | 149 Optional<float> quic_load_server_info_timeout_srtt_multiplier; |
| 149 Optional<bool> quic_enable_connection_racing; | 150 Optional<bool> quic_enable_connection_racing; |
| 150 Optional<bool> quic_enable_non_blocking_io; | 151 Optional<bool> quic_enable_non_blocking_io; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 343 |
| 343 // Returns the QUIC version specified by |quic_version| or | 344 // Returns the QUIC version specified by |quic_version| or |
| 344 // QUIC_VERSION_UNSUPPORTED if |quic_version| is invalid. | 345 // QUIC_VERSION_UNSUPPORTED if |quic_version| is invalid. |
| 345 static net::QuicVersion ParseQuicVersion(const std::string& quic_version); | 346 static net::QuicVersion ParseQuicVersion(const std::string& quic_version); |
| 346 | 347 |
| 347 // Returns the QUIC connection options specified by any flags in | 348 // Returns the QUIC connection options specified by any flags in |
| 348 // |quic_trial_params|. | 349 // |quic_trial_params|. |
| 349 static net::QuicTagVector GetQuicConnectionOptions( | 350 static net::QuicTagVector GetQuicConnectionOptions( |
| 350 const VariationParameters& quic_trial_params); | 351 const VariationParameters& quic_trial_params); |
| 351 | 352 |
| 353 // Returns the alternative service probability threshold specified by |
| 354 // any flags in |quic_trial_params|. |
| 355 static double GetAlternativeProtocolProbabilityThreshold( |
| 356 const VariationParameters& quic_trial_params); |
| 357 |
| 352 static net::URLRequestContext* ConstructSystemRequestContext( | 358 static net::URLRequestContext* ConstructSystemRequestContext( |
| 353 Globals* globals, | 359 Globals* globals, |
| 354 net::NetLog* net_log); | 360 net::NetLog* net_log); |
| 355 | 361 |
| 356 // The NetLog is owned by the application context, to allow logging from other | 362 // The NetLog is owned by the application context, to allow logging from other |
| 357 // threads during shutdown, but is used most frequently on the IO thread. | 363 // threads during shutdown, but is used most frequently on the IO thread. |
| 358 net_log::ChromeNetLog* net_log_; | 364 net_log::ChromeNetLog* net_log_; |
| 359 | 365 |
| 360 // These member variables are basically global, but their lifetimes are tied | 366 // These member variables are basically global, but their lifetimes are tied |
| 361 // to the IOSChromeIOThread. IOSChromeIOThread owns them all, despite not | 367 // to the IOSChromeIOThread. IOSChromeIOThread owns them all, despite not |
| (...skipping 23 matching lines...) Expand all Loading... |
| 385 system_url_request_context_getter_; | 391 system_url_request_context_getter_; |
| 386 | 392 |
| 387 const base::TimeTicks creation_time_; | 393 const base::TimeTicks creation_time_; |
| 388 | 394 |
| 389 base::WeakPtrFactory<IOSChromeIOThread> weak_factory_; | 395 base::WeakPtrFactory<IOSChromeIOThread> weak_factory_; |
| 390 | 396 |
| 391 DISALLOW_COPY_AND_ASSIGN(IOSChromeIOThread); | 397 DISALLOW_COPY_AND_ASSIGN(IOSChromeIOThread); |
| 392 }; | 398 }; |
| 393 | 399 |
| 394 #endif // IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ | 400 #endif // IOS_CHROME_BROWSER_IOS_CHROME_IO_THREAD_H_ |
| OLD | NEW |