Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: chrome/browser/io_thread.h

Issue 412143009: Moved data reduction proxy initialization logic to ProfileImplIOData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/chrome_network_delegate.h"
19 #include "chrome/browser/net/ssl_config_service_manager.h" 19 #include "chrome/browser/net/ssl_config_service_manager.h"
20 #include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_requ est_handler.h"
21 #include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
22 #include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_sta ts.h"
23 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
24 #include "content/public/browser/browser_thread_delegate.h" 21 #include "content/public/browser/browser_thread_delegate.h"
25 #include "net/base/network_change_notifier.h" 22 #include "net/base/network_change_notifier.h"
26 #include "net/http/http_network_session.h" 23 #include "net/http/http_network_session.h"
27 #include "net/socket/next_proto.h" 24 #include "net/socket/next_proto.h"
28 25
29 class ChromeNetLog; 26 class ChromeNetLog;
30 class PrefProxyConfigTracker; 27 class PrefProxyConfigTracker;
31 class PrefService; 28 class PrefService;
32 class PrefRegistrySimple; 29 class PrefRegistrySimple;
33 class SystemURLRequestContextGetter; 30 class SystemURLRequestContextGetter;
34 31
35 namespace base { 32 namespace base {
36 class CommandLine; 33 class CommandLine;
37 } 34 }
38 35
39 namespace chrome_browser_net { 36 namespace chrome_browser_net {
40 class DnsProbeService; 37 class DnsProbeService;
41 } 38 }
42 39
40 #if defined(SPDY_PROXY_AUTH_ORIGIN)
41 namespace data_reduction_proxy {
42 class DataReductionProxyAuthRequestHandler;
43 class DataReductionProxyParams;
44 }
45 #endif // defined(SPDY_PROXY_AUTH_ORIGIN)
46
43 namespace extensions { 47 namespace extensions {
44 class EventRouterForwarder; 48 class EventRouterForwarder;
45 } 49 }
46 50
47 namespace net { 51 namespace net {
48 class CertVerifier; 52 class CertVerifier;
49 class CookieStore; 53 class CookieStore;
50 class CTVerifier; 54 class CTVerifier;
51 class FtpTransactionFactory; 55 class FtpTransactionFactory;
52 class HostMappingRules; 56 class HostMappingRules;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 Optional<size_t> quic_max_packet_length; 190 Optional<size_t> quic_max_packet_length;
187 net::QuicTagVector quic_connection_options; 191 net::QuicTagVector quic_connection_options;
188 Optional<std::string> quic_user_agent_id; 192 Optional<std::string> quic_user_agent_id;
189 Optional<net::QuicVersionVector> quic_supported_versions; 193 Optional<net::QuicVersionVector> quic_supported_versions;
190 Optional<net::HostPortPair> origin_to_force_quic_on; 194 Optional<net::HostPortPair> origin_to_force_quic_on;
191 bool enable_user_alternate_protocol_ports; 195 bool enable_user_alternate_protocol_ports;
192 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a 196 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
193 // main frame load fails with a DNS error in order to provide more useful 197 // main frame load fails with a DNS error in order to provide more useful
194 // information to the renderer so it can show a more specific error page. 198 // information to the renderer so it can show a more specific error page.
195 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; 199 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service;
196 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> 200 #if defined(SPDY_PROXY_AUTH_ORIGIN)
197 data_reduction_proxy_params; 201 scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
198 scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> 202 data_reduction_proxy_params;
199 data_reduction_proxy_usage_stats; 203
200 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> 204 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler>
201 data_reduction_proxy_auth_request_handler; 205 data_reduction_proxy_auth_request_handler;
202 ChromeNetworkDelegate::OnResolveProxyHandler on_resolve_proxy_handler; 206 #endif
203 }; 207 };
204 208
205 // |net_log| must either outlive the IOThread or be NULL. 209 // |net_log| must either outlive the IOThread or be NULL.
206 IOThread(PrefService* local_state, 210 IOThread(PrefService* local_state,
207 policy::PolicyService* policy_service, 211 policy::PolicyService* policy_service,
208 ChromeNetLog* net_log, 212 ChromeNetLog* net_log,
209 extensions::EventRouterForwarder* extension_event_router_forwarder); 213 extensions::EventRouterForwarder* extension_event_router_forwarder);
210 214
211 virtual ~IOThread(); 215 virtual ~IOThread();
212 216
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 bool is_spdy_disabled_by_policy_; 443 bool is_spdy_disabled_by_policy_;
440 444
441 base::WeakPtrFactory<IOThread> weak_factory_; 445 base::WeakPtrFactory<IOThread> weak_factory_;
442 446
443 const base::TimeTicks creation_time_; 447 const base::TimeTicks creation_time_;
444 448
445 DISALLOW_COPY_AND_ASSIGN(IOThread); 449 DISALLOW_COPY_AND_ASSIGN(IOThread);
446 }; 450 };
447 451
448 #endif // CHROME_BROWSER_IO_THREAD_H_ 452 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698