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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/prefs/pref_member.h" | 16 #include "base/prefs/pref_member.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "chrome/browser/net/ssl_config_service_manager.h" | 18 #include "chrome/browser/net/ssl_config_service_manager.h" |
| 19 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" |
19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/browser/browser_thread_delegate.h" | 21 #include "content/public/browser/browser_thread_delegate.h" |
21 #include "net/base/network_change_notifier.h" | 22 #include "net/base/network_change_notifier.h" |
22 #include "net/http/http_network_session.h" | 23 #include "net/http/http_network_session.h" |
23 #include "net/socket/next_proto.h" | 24 #include "net/socket/next_proto.h" |
24 | 25 |
25 class ChromeNetLog; | 26 class ChromeNetLog; |
26 class PrefProxyConfigTracker; | 27 class PrefProxyConfigTracker; |
27 class PrefService; | 28 class PrefService; |
28 class PrefRegistrySimple; | 29 class PrefRegistrySimple; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 Optional<bool> enable_quic_persist_server_info; | 175 Optional<bool> enable_quic_persist_server_info; |
175 Optional<bool> enable_quic_port_selection; | 176 Optional<bool> enable_quic_port_selection; |
176 Optional<size_t> quic_max_packet_length; | 177 Optional<size_t> quic_max_packet_length; |
177 Optional<net::QuicVersionVector> quic_supported_versions; | 178 Optional<net::QuicVersionVector> quic_supported_versions; |
178 Optional<net::HostPortPair> origin_to_force_quic_on; | 179 Optional<net::HostPortPair> origin_to_force_quic_on; |
179 bool enable_user_alternate_protocol_ports; | 180 bool enable_user_alternate_protocol_ports; |
180 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 181 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
181 // main frame load fails with a DNS error in order to provide more useful | 182 // main frame load fails with a DNS error in order to provide more useful |
182 // information to the renderer so it can show a more specific error page. | 183 // information to the renderer so it can show a more specific error page. |
183 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 184 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
| 185 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
| 186 data_reduction_proxy_params; |
184 }; | 187 }; |
185 | 188 |
186 // |net_log| must either outlive the IOThread or be NULL. | 189 // |net_log| must either outlive the IOThread or be NULL. |
187 IOThread(PrefService* local_state, | 190 IOThread(PrefService* local_state, |
188 policy::PolicyService* policy_service, | 191 policy::PolicyService* policy_service, |
189 ChromeNetLog* net_log, | 192 ChromeNetLog* net_log, |
190 extensions::EventRouterForwarder* extension_event_router_forwarder); | 193 extensions::EventRouterForwarder* extension_event_router_forwarder); |
191 | 194 |
192 virtual ~IOThread(); | 195 virtual ~IOThread(); |
193 | 196 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 344 |
342 BooleanPrefMember quick_check_enabled_; | 345 BooleanPrefMember quick_check_enabled_; |
343 | 346 |
344 // Store HTTP Auth-related policies in this thread. | 347 // Store HTTP Auth-related policies in this thread. |
345 std::string auth_schemes_; | 348 std::string auth_schemes_; |
346 bool negotiate_disable_cname_lookup_; | 349 bool negotiate_disable_cname_lookup_; |
347 bool negotiate_enable_port_; | 350 bool negotiate_enable_port_; |
348 std::string auth_server_whitelist_; | 351 std::string auth_server_whitelist_; |
349 std::string auth_delegate_whitelist_; | 352 std::string auth_delegate_whitelist_; |
350 std::string gssapi_library_name_; | 353 std::string gssapi_library_name_; |
351 std::vector<GURL> spdyproxy_auth_origins_; | |
352 | 354 |
353 // This is an instance of the default SSLConfigServiceManager for the current | 355 // This is an instance of the default SSLConfigServiceManager for the current |
354 // platform and it gets SSL preferences from local_state object. | 356 // platform and it gets SSL preferences from local_state object. |
355 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 357 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
356 | 358 |
357 // These member variables are initialized by a task posted to the IO thread, | 359 // These member variables are initialized by a task posted to the IO thread, |
358 // which gets posted by calling certain member functions of IOThread. | 360 // which gets posted by calling certain member functions of IOThread. |
359 scoped_ptr<net::ProxyConfigService> system_proxy_config_service_; | 361 scoped_ptr<net::ProxyConfigService> system_proxy_config_service_; |
360 | 362 |
361 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 363 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
362 | 364 |
363 scoped_refptr<net::URLRequestContextGetter> | 365 scoped_refptr<net::URLRequestContextGetter> |
364 system_url_request_context_getter_; | 366 system_url_request_context_getter_; |
365 | 367 |
366 net::SdchManager* sdch_manager_; | 368 net::SdchManager* sdch_manager_; |
367 | 369 |
368 // True if SPDY is disabled by policy. | 370 // True if SPDY is disabled by policy. |
369 bool is_spdy_disabled_by_policy_; | 371 bool is_spdy_disabled_by_policy_; |
370 | 372 |
371 base::WeakPtrFactory<IOThread> weak_factory_; | 373 base::WeakPtrFactory<IOThread> weak_factory_; |
372 | 374 |
373 const base::TimeTicks creation_time_; | 375 const base::TimeTicks creation_time_; |
374 | 376 |
375 DISALLOW_COPY_AND_ASSIGN(IOThread); | 377 DISALLOW_COPY_AND_ASSIGN(IOThread); |
376 }; | 378 }; |
377 | 379 |
378 #endif // CHROME_BROWSER_IO_THREAD_H_ | 380 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |