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

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: nit 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
« no previous file with comments | « android_webview/native/aw_contents_statics.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ChannelIDService; 53 class ChannelIDService;
50 class CookieStore; 54 class CookieStore;
51 class CTVerifier; 55 class CTVerifier;
52 class FtpTransactionFactory; 56 class FtpTransactionFactory;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 Optional<size_t> quic_max_packet_length; 191 Optional<size_t> quic_max_packet_length;
188 net::QuicTagVector quic_connection_options; 192 net::QuicTagVector quic_connection_options;
189 Optional<std::string> quic_user_agent_id; 193 Optional<std::string> quic_user_agent_id;
190 Optional<net::QuicVersionVector> quic_supported_versions; 194 Optional<net::QuicVersionVector> quic_supported_versions;
191 Optional<net::HostPortPair> origin_to_force_quic_on; 195 Optional<net::HostPortPair> origin_to_force_quic_on;
192 bool enable_user_alternate_protocol_ports; 196 bool enable_user_alternate_protocol_ports;
193 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a 197 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
194 // main frame load fails with a DNS error in order to provide more useful 198 // main frame load fails with a DNS error in order to provide more useful
195 // information to the renderer so it can show a more specific error page. 199 // information to the renderer so it can show a more specific error page.
196 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; 200 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service;
197 scoped_ptr<data_reduction_proxy::DataReductionProxyParams> 201 #if defined(SPDY_PROXY_AUTH_ORIGIN)
198 data_reduction_proxy_params; 202 scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
199 scoped_ptr<data_reduction_proxy::DataReductionProxyUsageStats> 203 data_reduction_proxy_params;
200 data_reduction_proxy_usage_stats; 204 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler>
201 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler> 205 data_reduction_proxy_auth_request_handler;
202 data_reduction_proxy_auth_request_handler; 206 #endif
203 ChromeNetworkDelegate::OnResolveProxyHandler on_resolve_proxy_handler;
204 }; 207 };
205 208
206 // |net_log| must either outlive the IOThread or be NULL. 209 // |net_log| must either outlive the IOThread or be NULL.
207 IOThread(PrefService* local_state, 210 IOThread(PrefService* local_state,
208 policy::PolicyService* policy_service, 211 policy::PolicyService* policy_service,
209 ChromeNetLog* net_log, 212 ChromeNetLog* net_log,
210 extensions::EventRouterForwarder* extension_event_router_forwarder); 213 extensions::EventRouterForwarder* extension_event_router_forwarder);
211 214
212 virtual ~IOThread(); 215 virtual ~IOThread();
213 216
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 bool is_spdy_disabled_by_policy_; 443 bool is_spdy_disabled_by_policy_;
441 444
442 base::WeakPtrFactory<IOThread> weak_factory_; 445 base::WeakPtrFactory<IOThread> weak_factory_;
443 446
444 const base::TimeTicks creation_time_; 447 const base::TimeTicks creation_time_;
445 448
446 DISALLOW_COPY_AND_ASSIGN(IOThread); 449 DISALLOW_COPY_AND_ASSIGN(IOThread);
447 }; 450 };
448 451
449 #endif // CHROME_BROWSER_IO_THREAD_H_ 452 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents_statics.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698