Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/basictypes.h" | 8 #include "base/basictypes.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" |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 34 // member variables of URLRequestContext. | 34 // member variables of URLRequestContext. |
| 35 class NET_EXPORT URLRequestContextStorage { | 35 class NET_EXPORT URLRequestContextStorage { |
| 36 public: | 36 public: |
| 37 // Note that URLRequestContextStorage does not acquire a reference to | 37 // Note that URLRequestContextStorage does not acquire a reference to |
| 38 // URLRequestContext, since it is often designed to be embedded in a | 38 // URLRequestContext, since it is often designed to be embedded in a |
| 39 // URLRequestContext subclass. | 39 // URLRequestContext subclass. |
| 40 explicit URLRequestContextStorage(URLRequestContext* context); | 40 explicit URLRequestContextStorage(URLRequestContext* context); |
| 41 ~URLRequestContextStorage(); | 41 ~URLRequestContextStorage(); |
| 42 | 42 |
| 43 // These setters will set both the member variables and call the setter on the | 43 // These setters will set both the member variables and call the setter on the |
| 44 // URLRequestContext object. | 44 // URLRequestContext object. In all cases, ownership is passed to |this|. |
| 45 | 45 |
| 46 void set_net_log(NetLog* net_log); | 46 void set_net_log(NetLog* net_log); |
|
darin (slow to review)
2012/10/09 17:38:34
nit: all of these functions are incorrectly named
| |
| 47 void set_host_resolver(HostResolver* host_resolver); | 47 void set_host_resolver(scoped_ptr<HostResolver> host_resolver); |
| 48 void set_cert_verifier(CertVerifier* cert_verifier); | 48 void set_cert_verifier(CertVerifier* cert_verifier); |
| 49 void set_server_bound_cert_service( | 49 void set_server_bound_cert_service( |
| 50 ServerBoundCertService* server_bound_cert_service); | 50 ServerBoundCertService* server_bound_cert_service); |
| 51 void set_fraudulent_certificate_reporter( | 51 void set_fraudulent_certificate_reporter( |
| 52 FraudulentCertificateReporter* fraudulent_certificate_reporter); | 52 FraudulentCertificateReporter* fraudulent_certificate_reporter); |
| 53 void set_http_auth_handler_factory( | 53 void set_http_auth_handler_factory( |
| 54 HttpAuthHandlerFactory* http_auth_handler_factory); | 54 HttpAuthHandlerFactory* http_auth_handler_factory); |
| 55 void set_proxy_service(ProxyService* proxy_service); | 55 void set_proxy_service(ProxyService* proxy_service); |
| 56 void set_ssl_config_service(SSLConfigService* ssl_config_service); | 56 void set_ssl_config_service(SSLConfigService* ssl_config_service); |
| 57 void set_network_delegate(NetworkDelegate* network_delegate); | 57 void set_network_delegate(NetworkDelegate* network_delegate); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; | 91 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; |
| 92 scoped_ptr<URLRequestJobFactory> job_factory_; | 92 scoped_ptr<URLRequestJobFactory> job_factory_; |
| 93 scoped_ptr<URLRequestThrottlerManager> throttler_manager_; | 93 scoped_ptr<URLRequestThrottlerManager> throttler_manager_; |
| 94 | 94 |
| 95 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); | 95 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 } // namespace net | 98 } // namespace net |
| 99 | 99 |
| 100 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ | 100 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ |
| OLD | NEW |