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

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

Issue 778463002: Wrapped data reduction proxy initialization into its own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@network-delegate
Patch Set: Updated test Created 5 years, 11 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
(...skipping 20 matching lines...) Expand all
31 class SystemURLRequestContextGetter; 31 class SystemURLRequestContextGetter;
32 32
33 namespace base { 33 namespace base {
34 class CommandLine; 34 class CommandLine;
35 } 35 }
36 36
37 namespace chrome_browser_net { 37 namespace chrome_browser_net {
38 class DnsProbeService; 38 class DnsProbeService;
39 } 39 }
40 40
41 namespace data_reduction_proxy {
42 class DataReductionProxyAuthRequestHandler;
43 class DataReductionProxyDelegate;
44 class DataReductionProxyParams;
45 }
46
47 namespace extensions { 41 namespace extensions {
48 class EventRouterForwarder; 42 class EventRouterForwarder;
49 } 43 }
50 44
51 namespace net { 45 namespace net {
52 class CertPolicyEnforcer; 46 class CertPolicyEnforcer;
53 class CertVerifier; 47 class CertVerifier;
54 class ChannelIDService; 48 class ChannelIDService;
55 class CookieStore; 49 class CookieStore;
56 class CTVerifier; 50 class CTVerifier;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 Optional<size_t> quic_max_packet_length; 192 Optional<size_t> quic_max_packet_length;
199 net::QuicTagVector quic_connection_options; 193 net::QuicTagVector quic_connection_options;
200 Optional<std::string> quic_user_agent_id; 194 Optional<std::string> quic_user_agent_id;
201 Optional<net::QuicVersionVector> quic_supported_versions; 195 Optional<net::QuicVersionVector> quic_supported_versions;
202 Optional<net::HostPortPair> origin_to_force_quic_on; 196 Optional<net::HostPortPair> origin_to_force_quic_on;
203 bool enable_user_alternate_protocol_ports; 197 bool enable_user_alternate_protocol_ports;
204 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a 198 // NetErrorTabHelper uses |dns_probe_service| to send DNS probes when a
205 // main frame load fails with a DNS error in order to provide more useful 199 // main frame load fails with a DNS error in order to provide more useful
206 // information to the renderer so it can show a more specific error page. 200 // information to the renderer so it can show a more specific error page.
207 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service; 201 scoped_ptr<chrome_browser_net::DnsProbeService> dns_probe_service;
208 scoped_ptr<data_reduction_proxy::DataReductionProxyParams>
209 data_reduction_proxy_params;
210 scoped_ptr<data_reduction_proxy::DataReductionProxyAuthRequestHandler>
211 data_reduction_proxy_auth_request_handler;
212 scoped_ptr<data_reduction_proxy::DataReductionProxyDelegate>
213 data_reduction_proxy_delegate;
214 }; 202 };
215 203
216 // |net_log| must either outlive the IOThread or be NULL. 204 // |net_log| must either outlive the IOThread or be NULL.
217 IOThread(PrefService* local_state, 205 IOThread(PrefService* local_state,
218 policy::PolicyService* policy_service, 206 policy::PolicyService* policy_service,
219 ChromeNetLog* net_log, 207 ChromeNetLog* net_log,
220 extensions::EventRouterForwarder* extension_event_router_forwarder); 208 extensions::EventRouterForwarder* extension_event_router_forwarder);
221 209
222 ~IOThread() override; 210 ~IOThread() override;
223 211
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 net::SSLConfigService* GetSSLConfigService(); 302 net::SSLConfigService* GetSSLConfigService();
315 303
316 void ChangedToOnTheRecordOnIOThread(); 304 void ChangedToOnTheRecordOnIOThread();
317 305
318 void UpdateDnsClientEnabled(); 306 void UpdateDnsClientEnabled();
319 307
320 // Configures QUIC options based on the flags in |command_line| as 308 // Configures QUIC options based on the flags in |command_line| as
321 // well as the QUIC field trial group. 309 // well as the QUIC field trial group.
322 void ConfigureQuic(const base::CommandLine& command_line); 310 void ConfigureQuic(const base::CommandLine& command_line);
323 311
324 // Set up data reduction proxy related objects on IO thread globals.
325 void SetupDataReductionProxy();
326
327 extensions::EventRouterForwarder* extension_event_router_forwarder() { 312 extensions::EventRouterForwarder* extension_event_router_forwarder() {
328 #if defined(ENABLE_EXTENSIONS) 313 #if defined(ENABLE_EXTENSIONS)
329 return extension_event_router_forwarder_; 314 return extension_event_router_forwarder_;
330 #else 315 #else
331 return NULL; 316 return NULL;
332 #endif 317 #endif
333 } 318 }
334 // Configures QUIC options in |globals| based on the flags in |command_line| 319 // Configures QUIC options in |globals| based on the flags in |command_line|
335 // as well as the QUIC field trial group and parameters. 320 // as well as the QUIC field trial group and parameters.
336 static void ConfigureQuicGlobals( 321 static void ConfigureQuicGlobals(
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 bool is_spdy_disabled_by_policy_; 456 bool is_spdy_disabled_by_policy_;
472 457
473 const base::TimeTicks creation_time_; 458 const base::TimeTicks creation_time_;
474 459
475 base::WeakPtrFactory<IOThread> weak_factory_; 460 base::WeakPtrFactory<IOThread> weak_factory_;
476 461
477 DISALLOW_COPY_AND_ASSIGN(IOThread); 462 DISALLOW_COPY_AND_ASSIGN(IOThread);
478 }; 463 };
479 464
480 #endif // CHROME_BROWSER_IO_THREAD_H_ 465 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « android_webview/browser/net/aw_url_request_context_getter.cc ('k') | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698