| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 namespace base { | 33 namespace base { |
| 34 class CommandLine; | 34 class CommandLine; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace chrome_browser_net { | 37 namespace chrome_browser_net { |
| 38 class DnsProbeService; | 38 class DnsProbeService; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace data_reduction_proxy { | 41 namespace data_reduction_proxy { |
| 42 class DataReductionProxyAuthRequestHandler; | 42 class DataReductionProxyIOData; |
| 43 class DataReductionProxyDelegate; | |
| 44 class DataReductionProxyParams; | |
| 45 } | 43 } |
| 46 | 44 |
| 47 namespace extensions { | 45 namespace extensions { |
| 48 class EventRouterForwarder; | 46 class EventRouterForwarder; |
| 49 } | 47 } |
| 50 | 48 |
| 51 namespace net { | 49 namespace net { |
| 52 class CertPolicyEnforcer; | 50 class CertPolicyEnforcer; |
| 53 class CertVerifier; | 51 class CertVerifier; |
| 54 class ChannelIDService; | 52 class ChannelIDService; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 Optional<size_t> quic_max_packet_length; | 193 Optional<size_t> quic_max_packet_length; |
| 196 net::QuicTagVector quic_connection_options; | 194 net::QuicTagVector quic_connection_options; |
| 197 Optional<std::string> quic_user_agent_id; | 195 Optional<std::string> quic_user_agent_id; |
| 198 Optional<net::QuicVersionVector> quic_supported_versions; | 196 Optional<net::QuicVersionVector> quic_supported_versions; |
| 199 Optional<net::HostPortPair> origin_to_force_quic_on; | 197 Optional<net::HostPortPair> origin_to_force_quic_on; |
| 200 bool enable_user_alternate_protocol_ports; | 198 bool enable_user_alternate_protocol_ports; |
| 201 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 199 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
| 202 // main frame load fails with a DNS error in order to provide more useful | 200 // main frame load fails with a DNS error in order to provide more useful |
| 203 // information to the renderer so it can show a more specific error page. | 201 // information to the renderer so it can show a more specific error page. |
| 204 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 202 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
| 205 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 203 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> |
| 206 data_reduction_proxy_params; | 204 data_reduction_proxy_io_data; |
| 207 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | |
| 208 data_reduction_proxy_auth_request_handler; | |
| 209 scoped_ptr<data_reduction_proxy::DataReductionProxyDelegate> | |
| 210 data_reduction_proxy_delegate; | |
| 211 }; | 205 }; |
| 212 | 206 |
| 213 // |net_log| must either outlive the IOThread or be NULL. | 207 // |net_log| must either outlive the IOThread or be NULL. |
| 214 IOThread(PrefService* local_state, | 208 IOThread(PrefService* local_state, |
| 215 policy::PolicyService* policy_service, | 209 policy::PolicyService* policy_service, |
| 216 ChromeNetLog* net_log, | 210 ChromeNetLog* net_log, |
| 217 extensions::EventRouterForwarder* extension_event_router_forwarder); | 211 extensions::EventRouterForwarder* extension_event_router_forwarder); |
| 218 | 212 |
| 219 ~IOThread() override; | 213 ~IOThread() override; |
| 220 | 214 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 net::SSLConfigService* GetSSLConfigService(); | 305 net::SSLConfigService* GetSSLConfigService(); |
| 312 | 306 |
| 313 void ChangedToOnTheRecordOnIOThread(); | 307 void ChangedToOnTheRecordOnIOThread(); |
| 314 | 308 |
| 315 void UpdateDnsClientEnabled(); | 309 void UpdateDnsClientEnabled(); |
| 316 | 310 |
| 317 // Configures QUIC options based on the flags in |command_line| as | 311 // Configures QUIC options based on the flags in |command_line| as |
| 318 // well as the QUIC field trial group. | 312 // well as the QUIC field trial group. |
| 319 void ConfigureQuic(const base::CommandLine& command_line); | 313 void ConfigureQuic(const base::CommandLine& command_line); |
| 320 | 314 |
| 321 // Set up data reduction proxy related objects on IO thread globals. | |
| 322 void SetupDataReductionProxy(); | |
| 323 | |
| 324 extensions::EventRouterForwarder* extension_event_router_forwarder() { | 315 extensions::EventRouterForwarder* extension_event_router_forwarder() { |
| 325 #if defined(ENABLE_EXTENSIONS) | 316 #if defined(ENABLE_EXTENSIONS) |
| 326 return extension_event_router_forwarder_; | 317 return extension_event_router_forwarder_; |
| 327 #else | 318 #else |
| 328 return NULL; | 319 return NULL; |
| 329 #endif | 320 #endif |
| 330 } | 321 } |
| 331 // Configures QUIC options in |globals| based on the flags in |command_line| | 322 // Configures QUIC options in |globals| based on the flags in |command_line| |
| 332 // as well as the QUIC field trial group and parameters. | 323 // as well as the QUIC field trial group and parameters. |
| 333 static void ConfigureQuicGlobals( | 324 static void ConfigureQuicGlobals( |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 bool is_spdy_disabled_by_policy_; | 447 bool is_spdy_disabled_by_policy_; |
| 457 | 448 |
| 458 const base::TimeTicks creation_time_; | 449 const base::TimeTicks creation_time_; |
| 459 | 450 |
| 460 base::WeakPtrFactory<IOThread> weak_factory_; | 451 base::WeakPtrFactory<IOThread> weak_factory_; |
| 461 | 452 |
| 462 DISALLOW_COPY_AND_ASSIGN(IOThread); | 453 DISALLOW_COPY_AND_ASSIGN(IOThread); |
| 463 }; | 454 }; |
| 464 | 455 |
| 465 #endif // CHROME_BROWSER_IO_THREAD_H_ | 456 #endif // CHROME_BROWSER_IO_THREAD_H_ |
| OLD | NEW |