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

Side by Side Diff: net/url_request/url_request_context_storage.h

Issue 1725123005: Passing in a Data Reduction Proxy Delegate from Cronet with Data Reduction Proxy Enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding a comment Created 4 years, 9 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 NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
6 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class CertVerifier; 15 class CertVerifier;
16 class ChannelIDService; 16 class ChannelIDService;
17 class CookieStore; 17 class CookieStore;
18 class FtpTransactionFactory; 18 class FtpTransactionFactory;
19 class HostResolver; 19 class HostResolver;
20 class HttpAuthHandlerFactory; 20 class HttpAuthHandlerFactory;
21 class HttpNetworkSession; 21 class HttpNetworkSession;
22 class HttpServerProperties; 22 class HttpServerProperties;
23 class HttpTransactionFactory; 23 class HttpTransactionFactory;
24 class HttpUserAgentSettings; 24 class HttpUserAgentSettings;
25 class NetLog; 25 class NetLog;
26 class NetworkDelegate; 26 class NetworkDelegate;
27 class ProxyDelegate;
27 class ProxyService; 28 class ProxyService;
28 class SdchManager; 29 class SdchManager;
29 class SSLConfigService; 30 class SSLConfigService;
30 class TransportSecurityState; 31 class TransportSecurityState;
31 class URLRequestContext; 32 class URLRequestContext;
32 class URLRequestBackoffManager; 33 class URLRequestBackoffManager;
33 class URLRequestJobFactory; 34 class URLRequestJobFactory;
34 class URLRequestThrottlerManager; 35 class URLRequestThrottlerManager;
35 36
36 // URLRequestContextStorage is a helper class that provides storage for unowned 37 // URLRequestContextStorage is a helper class that provides storage for unowned
(...skipping 11 matching lines...) Expand all
48 49
49 void set_net_log(scoped_ptr<NetLog> net_log); 50 void set_net_log(scoped_ptr<NetLog> net_log);
50 void set_host_resolver(scoped_ptr<HostResolver> host_resolver); 51 void set_host_resolver(scoped_ptr<HostResolver> host_resolver);
51 void set_cert_verifier(scoped_ptr<CertVerifier> cert_verifier); 52 void set_cert_verifier(scoped_ptr<CertVerifier> cert_verifier);
52 void set_channel_id_service(scoped_ptr<ChannelIDService> channel_id_service); 53 void set_channel_id_service(scoped_ptr<ChannelIDService> channel_id_service);
53 void set_http_auth_handler_factory( 54 void set_http_auth_handler_factory(
54 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory); 55 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory);
55 void set_proxy_service(scoped_ptr<ProxyService> proxy_service); 56 void set_proxy_service(scoped_ptr<ProxyService> proxy_service);
56 void set_ssl_config_service(SSLConfigService* ssl_config_service); 57 void set_ssl_config_service(SSLConfigService* ssl_config_service);
57 void set_network_delegate(scoped_ptr<NetworkDelegate> network_delegate); 58 void set_network_delegate(scoped_ptr<NetworkDelegate> network_delegate);
59 void set_proxy_delegate(scoped_ptr<ProxyDelegate> proxy_delegate);
58 void set_http_server_properties( 60 void set_http_server_properties(
59 scoped_ptr<HttpServerProperties> http_server_properties); 61 scoped_ptr<HttpServerProperties> http_server_properties);
60 void set_cookie_store(CookieStore* cookie_store); 62 void set_cookie_store(CookieStore* cookie_store);
61 void set_transport_security_state( 63 void set_transport_security_state(
62 scoped_ptr<TransportSecurityState> transport_security_state); 64 scoped_ptr<TransportSecurityState> transport_security_state);
63 void set_http_network_session( 65 void set_http_network_session(
64 scoped_ptr<HttpNetworkSession> http_network_session); 66 scoped_ptr<HttpNetworkSession> http_network_session);
65 void set_http_transaction_factory( 67 void set_http_transaction_factory(
66 scoped_ptr<HttpTransactionFactory> http_transaction_factory); 68 scoped_ptr<HttpTransactionFactory> http_transaction_factory);
67 void set_job_factory(scoped_ptr<URLRequestJobFactory> job_factory); 69 void set_job_factory(scoped_ptr<URLRequestJobFactory> job_factory);
(...skipping 21 matching lines...) Expand all
89 scoped_ptr<NetLog> net_log_; 91 scoped_ptr<NetLog> net_log_;
90 scoped_ptr<HostResolver> host_resolver_; 92 scoped_ptr<HostResolver> host_resolver_;
91 scoped_ptr<CertVerifier> cert_verifier_; 93 scoped_ptr<CertVerifier> cert_verifier_;
92 // The ChannelIDService must outlive the HttpTransactionFactory. 94 // The ChannelIDService must outlive the HttpTransactionFactory.
93 scoped_ptr<ChannelIDService> channel_id_service_; 95 scoped_ptr<ChannelIDService> channel_id_service_;
94 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory_; 96 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory_;
95 scoped_ptr<ProxyService> proxy_service_; 97 scoped_ptr<ProxyService> proxy_service_;
96 // TODO(willchan): Remove refcounting on these members. 98 // TODO(willchan): Remove refcounting on these members.
97 scoped_refptr<SSLConfigService> ssl_config_service_; 99 scoped_refptr<SSLConfigService> ssl_config_service_;
98 scoped_ptr<NetworkDelegate> network_delegate_; 100 scoped_ptr<NetworkDelegate> network_delegate_;
101 scoped_ptr<ProxyDelegate> proxy_delegate_;
99 scoped_ptr<HttpServerProperties> http_server_properties_; 102 scoped_ptr<HttpServerProperties> http_server_properties_;
100 scoped_ptr<HttpUserAgentSettings> http_user_agent_settings_; 103 scoped_ptr<HttpUserAgentSettings> http_user_agent_settings_;
101 scoped_refptr<CookieStore> cookie_store_; 104 scoped_refptr<CookieStore> cookie_store_;
102 scoped_ptr<TransportSecurityState> transport_security_state_; 105 scoped_ptr<TransportSecurityState> transport_security_state_;
103 106
104 // Not actually pointed at by the URLRequestContext, but may be used (but not 107 // Not actually pointed at by the URLRequestContext, but may be used (but not
105 // owned) by the HttpTransactionFactory. 108 // owned) by the HttpTransactionFactory.
106 scoped_ptr<HttpNetworkSession> http_network_session_; 109 scoped_ptr<HttpNetworkSession> http_network_session_;
107 110
108 scoped_ptr<HttpTransactionFactory> http_transaction_factory_; 111 scoped_ptr<HttpTransactionFactory> http_transaction_factory_;
109 scoped_ptr<URLRequestJobFactory> job_factory_; 112 scoped_ptr<URLRequestJobFactory> job_factory_;
110 scoped_ptr<URLRequestThrottlerManager> throttler_manager_; 113 scoped_ptr<URLRequestThrottlerManager> throttler_manager_;
111 scoped_ptr<URLRequestBackoffManager> backoff_manager_; 114 scoped_ptr<URLRequestBackoffManager> backoff_manager_;
112 scoped_ptr<SdchManager> sdch_manager_; 115 scoped_ptr<SdchManager> sdch_manager_;
113 116
114 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); 117 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage);
115 }; 118 };
116 119
117 } // namespace net 120 } // namespace net
118 121
119 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 122 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_context_builder.cc ('k') | net/url_request/url_request_context_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698