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/chrome_network_delegate.h" |
18 #include "chrome/browser/net/ssl_config_service_manager.h" | 19 #include "chrome/browser/net/ssl_config_service_manager.h" |
19 #include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_requ
est_handler.h" | 20 #include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_requ
est_handler.h" |
20 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" | 21 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" |
21 #include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_sta
ts.h" | 22 #include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_sta
ts.h" |
22 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
23 #include "content/public/browser/browser_thread_delegate.h" | 24 #include "content/public/browser/browser_thread_delegate.h" |
24 #include "net/base/network_change_notifier.h" | 25 #include "net/base/network_change_notifier.h" |
25 #include "net/http/http_network_session.h" | 26 #include "net/http/http_network_session.h" |
26 #include "net/socket/next_proto.h" | 27 #include "net/socket/next_proto.h" |
27 | 28 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 189 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
189 // main frame load fails with a DNS error in order to provide more useful | 190 // main frame load fails with a DNS error in order to provide more useful |
190 // information to the renderer so it can show a more specific error page. | 191 // information to the renderer so it can show a more specific error page. |
191 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 192 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
192 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 193 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
193 data_reduction_proxy_params; | 194 data_reduction_proxy_params; |
194 scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> | 195 scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> |
195 data_reduction_proxy_usage_stats; | 196 data_reduction_proxy_usage_stats; |
196 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> | 197 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> |
197 data_reduction_proxy_auth_request_handler; | 198 data_reduction_proxy_auth_request_handler; |
| 199 ChromeNetworkDelegate::OnResolveProxyHandler on_resolve_proxy_handler; |
198 }; | 200 }; |
199 | 201 |
200 // |net_log| must either outlive the IOThread or be NULL. | 202 // |net_log| must either outlive the IOThread or be NULL. |
201 IOThread(PrefService* local_state, | 203 IOThread(PrefService* local_state, |
202 policy::PolicyService* policy_service, | 204 policy::PolicyService* policy_service, |
203 ChromeNetLog* net_log, | 205 ChromeNetLog* net_log, |
204 extensions::EventRouterForwarder* extension_event_router_forwarder); | 206 extensions::EventRouterForwarder* extension_event_router_forwarder); |
205 | 207 |
206 virtual ~IOThread(); | 208 virtual ~IOThread(); |
207 | 209 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 bool is_spdy_disabled_by_policy_; | 421 bool is_spdy_disabled_by_policy_; |
420 | 422 |
421 base::WeakPtrFactory<IOThread> weak_factory_; | 423 base::WeakPtrFactory<IOThread> weak_factory_; |
422 | 424 |
423 const base::TimeTicks creation_time_; | 425 const base::TimeTicks creation_time_; |
424 | 426 |
425 DISALLOW_COPY_AND_ASSIGN(IOThread); | 427 DISALLOW_COPY_AND_ASSIGN(IOThread); |
426 }; | 428 }; |
427 | 429 |
428 #endif // CHROME_BROWSER_IO_THREAD_H_ | 430 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |