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

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

Issue 2249213002: [OBSOLETE] Reporting: Initial implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years 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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 class HostResolver; 21 class HostResolver;
22 class HttpAuthHandlerFactory; 22 class HttpAuthHandlerFactory;
23 class HttpNetworkSession; 23 class HttpNetworkSession;
24 class HttpServerProperties; 24 class HttpServerProperties;
25 class HttpTransactionFactory; 25 class HttpTransactionFactory;
26 class HttpUserAgentSettings; 26 class HttpUserAgentSettings;
27 class NetLog; 27 class NetLog;
28 class NetworkDelegate; 28 class NetworkDelegate;
29 class ProxyDelegate; 29 class ProxyDelegate;
30 class ProxyService; 30 class ProxyService;
31 class ReportingService;
31 class SdchManager; 32 class SdchManager;
32 class SSLConfigService; 33 class SSLConfigService;
33 class TransportSecurityState; 34 class TransportSecurityState;
34 class URLRequestContext; 35 class URLRequestContext;
35 class URLRequestJobFactory; 36 class URLRequestJobFactory;
36 class URLRequestThrottlerManager; 37 class URLRequestThrottlerManager;
37 38
38 // URLRequestContextStorage is a helper class that provides storage for unowned 39 // URLRequestContextStorage is a helper class that provides storage for unowned
39 // member variables of URLRequestContext. 40 // member variables of URLRequestContext.
40 class NET_EXPORT URLRequestContextStorage { 41 class NET_EXPORT URLRequestContextStorage {
(...skipping 20 matching lines...) Expand all
61 void set_proxy_delegate(std::unique_ptr<ProxyDelegate> proxy_delegate); 62 void set_proxy_delegate(std::unique_ptr<ProxyDelegate> proxy_delegate);
62 void set_http_server_properties( 63 void set_http_server_properties(
63 std::unique_ptr<HttpServerProperties> http_server_properties); 64 std::unique_ptr<HttpServerProperties> http_server_properties);
64 void set_cookie_store(std::unique_ptr<CookieStore> cookie_store); 65 void set_cookie_store(std::unique_ptr<CookieStore> cookie_store);
65 void set_transport_security_state( 66 void set_transport_security_state(
66 std::unique_ptr<TransportSecurityState> transport_security_state); 67 std::unique_ptr<TransportSecurityState> transport_security_state);
67 void set_cert_transparency_verifier( 68 void set_cert_transparency_verifier(
68 std::unique_ptr<CTVerifier> cert_transparency_verifier); 69 std::unique_ptr<CTVerifier> cert_transparency_verifier);
69 void set_ct_policy_enforcer( 70 void set_ct_policy_enforcer(
70 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer); 71 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer);
72 void set_reporting_service(
73 std::unique_ptr<ReportingService> reporting_service);
71 void set_http_network_session( 74 void set_http_network_session(
72 std::unique_ptr<HttpNetworkSession> http_network_session); 75 std::unique_ptr<HttpNetworkSession> http_network_session);
73 void set_http_transaction_factory( 76 void set_http_transaction_factory(
74 std::unique_ptr<HttpTransactionFactory> http_transaction_factory); 77 std::unique_ptr<HttpTransactionFactory> http_transaction_factory);
75 void set_job_factory(std::unique_ptr<URLRequestJobFactory> job_factory); 78 void set_job_factory(std::unique_ptr<URLRequestJobFactory> job_factory);
76 void set_throttler_manager( 79 void set_throttler_manager(
77 std::unique_ptr<URLRequestThrottlerManager> throttler_manager); 80 std::unique_ptr<URLRequestThrottlerManager> throttler_manager);
78 void set_http_user_agent_settings( 81 void set_http_user_agent_settings(
79 std::unique_ptr<HttpUserAgentSettings> http_user_agent_settings); 82 std::unique_ptr<HttpUserAgentSettings> http_user_agent_settings);
80 void set_sdch_manager(std::unique_ptr<SdchManager> sdch_manager); 83 void set_sdch_manager(std::unique_ptr<SdchManager> sdch_manager);
(...skipping 19 matching lines...) Expand all
100 // TODO(willchan): Remove refcounting on this member. 103 // TODO(willchan): Remove refcounting on this member.
101 scoped_refptr<SSLConfigService> ssl_config_service_; 104 scoped_refptr<SSLConfigService> ssl_config_service_;
102 std::unique_ptr<NetworkDelegate> network_delegate_; 105 std::unique_ptr<NetworkDelegate> network_delegate_;
103 std::unique_ptr<ProxyDelegate> proxy_delegate_; 106 std::unique_ptr<ProxyDelegate> proxy_delegate_;
104 std::unique_ptr<HttpServerProperties> http_server_properties_; 107 std::unique_ptr<HttpServerProperties> http_server_properties_;
105 std::unique_ptr<HttpUserAgentSettings> http_user_agent_settings_; 108 std::unique_ptr<HttpUserAgentSettings> http_user_agent_settings_;
106 std::unique_ptr<CookieStore> cookie_store_; 109 std::unique_ptr<CookieStore> cookie_store_;
107 std::unique_ptr<TransportSecurityState> transport_security_state_; 110 std::unique_ptr<TransportSecurityState> transport_security_state_;
108 std::unique_ptr<CTVerifier> cert_transparency_verifier_; 111 std::unique_ptr<CTVerifier> cert_transparency_verifier_;
109 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer_; 112 std::unique_ptr<CTPolicyEnforcer> ct_policy_enforcer_;
113 std::unique_ptr<ReportingService> reporting_service_;
110 114
111 // Not actually pointed at by the URLRequestContext, but may be used (but not 115 // Not actually pointed at by the URLRequestContext, but may be used (but not
112 // owned) by the HttpTransactionFactory. 116 // owned) by the HttpTransactionFactory.
113 std::unique_ptr<HttpNetworkSession> http_network_session_; 117 std::unique_ptr<HttpNetworkSession> http_network_session_;
114 118
115 std::unique_ptr<HttpTransactionFactory> http_transaction_factory_; 119 std::unique_ptr<HttpTransactionFactory> http_transaction_factory_;
116 std::unique_ptr<URLRequestJobFactory> job_factory_; 120 std::unique_ptr<URLRequestJobFactory> job_factory_;
117 std::unique_ptr<URLRequestThrottlerManager> throttler_manager_; 121 std::unique_ptr<URLRequestThrottlerManager> throttler_manager_;
118 std::unique_ptr<SdchManager> sdch_manager_; 122 std::unique_ptr<SdchManager> sdch_manager_;
119 123
120 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); 124 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage);
121 }; 125 };
122 126
123 } // namespace net 127 } // namespace net
124 128
125 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ 129 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698