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_auth_requ
est_handler.h" |
19 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" | 20 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h" |
20 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
21 #include "content/public/browser/browser_thread_delegate.h" | 22 #include "content/public/browser/browser_thread_delegate.h" |
22 #include "net/base/network_change_notifier.h" | 23 #include "net/base/network_change_notifier.h" |
23 #include "net/http/http_network_session.h" | 24 #include "net/http/http_network_session.h" |
24 #include "net/socket/next_proto.h" | 25 #include "net/socket/next_proto.h" |
25 | 26 |
26 class ChromeNetLog; | 27 class ChromeNetLog; |
27 class PrefProxyConfigTracker; | 28 class PrefProxyConfigTracker; |
28 class PrefService; | 29 class PrefService; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 Optional<std::string> quic_user_agent_id; | 180 Optional<std::string> quic_user_agent_id; |
180 Optional<net::QuicVersionVector> quic_supported_versions; | 181 Optional<net::QuicVersionVector> quic_supported_versions; |
181 Optional<net::HostPortPair> origin_to_force_quic_on; | 182 Optional<net::HostPortPair> origin_to_force_quic_on; |
182 bool enable_user_alternate_protocol_ports; | 183 bool enable_user_alternate_protocol_ports; |
183 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a | 184 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a |
184 // main frame load fails with a DNS error in order to provide more useful | 185 // main frame load fails with a DNS error in order to provide more useful |
185 // information to the renderer so it can show a more specific error page. | 186 // information to the renderer so it can show a more specific error page. |
186 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; | 187 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; |
187 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> | 188 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> |
188 data_reduction_proxy_params; | 189 data_reduction_proxy_params; |
| 190 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> |
| 191 data_reduction_proxy_auth_request_handler; |
189 }; | 192 }; |
190 | 193 |
191 // |net_log| must either outlive the IOThread or be NULL. | 194 // |net_log| must either outlive the IOThread or be NULL. |
192 IOThread(PrefService* local_state, | 195 IOThread(PrefService* local_state, |
193 policy::PolicyService* policy_service, | 196 policy::PolicyService* policy_service, |
194 ChromeNetLog* net_log, | 197 ChromeNetLog* net_log, |
195 extensions::EventRouterForwarder* extension_event_router_forwarder); | 198 extensions::EventRouterForwarder* extension_event_router_forwarder); |
196 | 199 |
197 virtual ~IOThread(); | 200 virtual ~IOThread(); |
198 | 201 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 bool is_spdy_disabled_by_policy_; | 374 bool is_spdy_disabled_by_policy_; |
372 | 375 |
373 base::WeakPtrFactory<IOThread> weak_factory_; | 376 base::WeakPtrFactory<IOThread> weak_factory_; |
374 | 377 |
375 const base::TimeTicks creation_time_; | 378 const base::TimeTicks creation_time_; |
376 | 379 |
377 DISALLOW_COPY_AND_ASSIGN(IOThread); | 380 DISALLOW_COPY_AND_ASSIGN(IOThread); |
378 }; | 381 }; |
379 | 382 |
380 #endif // CHROME_BROWSER_IO_THREAD_H_ | 383 #endif // CHROME_BROWSER_IO_THREAD_H_ |
OLD | NEW |