| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 class CertVerifier; | 16 class CertVerifier; |
| 17 class CookieStore; | 17 class CookieStore; |
| 18 class DnsCertProvenanceChecker; | 18 class DnsCertProvenanceChecker; |
| 19 class DnsRRResolver; | 19 class DnsRRResolver; |
| 20 class FtpTransactionFactory; | 20 class FtpTransactionFactory; |
| 21 class HostResolver; | 21 class HostResolver; |
| 22 class HttpAuthHandlerFactory; | 22 class HttpAuthHandlerFactory; |
| 23 class HttpServerProperties; |
| 23 class HttpTransactionFactory; | 24 class HttpTransactionFactory; |
| 24 class NetLog; | 25 class NetLog; |
| 25 class NetworkDelegate; | 26 class NetworkDelegate; |
| 26 class OriginBoundCertService; | 27 class OriginBoundCertService; |
| 27 class ProxyService; | 28 class ProxyService; |
| 28 class SSLConfigService; | 29 class SSLConfigService; |
| 29 class TransportSecurityState; | 30 class TransportSecurityState; |
| 30 class URLRequestContext; | 31 class URLRequestContext; |
| 31 class URLRequestJobFactory; | 32 class URLRequestJobFactory; |
| 32 | 33 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 48 void set_cert_verifier(CertVerifier* cert_verifier); | 49 void set_cert_verifier(CertVerifier* cert_verifier); |
| 49 void set_origin_bound_cert_service( | 50 void set_origin_bound_cert_service( |
| 50 OriginBoundCertService* origin_bound_cert_service); | 51 OriginBoundCertService* origin_bound_cert_service); |
| 51 void set_dnsrr_resolver(DnsRRResolver* dnsrr_resolver); | 52 void set_dnsrr_resolver(DnsRRResolver* dnsrr_resolver); |
| 52 void set_dns_cert_checker(DnsCertProvenanceChecker* dns_cert_checker); | 53 void set_dns_cert_checker(DnsCertProvenanceChecker* dns_cert_checker); |
| 53 void set_http_auth_handler_factory( | 54 void set_http_auth_handler_factory( |
| 54 HttpAuthHandlerFactory* http_auth_handler_factory); | 55 HttpAuthHandlerFactory* http_auth_handler_factory); |
| 55 void set_proxy_service(ProxyService* proxy_service); | 56 void set_proxy_service(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(NetworkDelegate* network_delegate); | 58 void set_network_delegate(NetworkDelegate* network_delegate); |
| 59 void set_http_server_properties(HttpServerProperties* http_server_properties); |
| 58 void set_cookie_store(CookieStore* cookie_store); | 60 void set_cookie_store(CookieStore* cookie_store); |
| 59 void set_transport_security_state( | 61 void set_transport_security_state( |
| 60 TransportSecurityState* transport_security_state); | 62 TransportSecurityState* transport_security_state); |
| 61 void set_http_transaction_factory( | 63 void set_http_transaction_factory( |
| 62 HttpTransactionFactory* http_transaction_factory); | 64 HttpTransactionFactory* http_transaction_factory); |
| 63 void set_ftp_transaction_factory( | 65 void set_ftp_transaction_factory( |
| 64 FtpTransactionFactory* ftp_transaction_factory); | 66 FtpTransactionFactory* ftp_transaction_factory); |
| 65 void set_job_factory(URLRequestJobFactory* job_factory); | 67 void set_job_factory(URLRequestJobFactory* job_factory); |
| 66 | 68 |
| 67 private: | 69 private: |
| 68 // We use a raw pointer to prevent reference cycles, since | 70 // We use a raw pointer to prevent reference cycles, since |
| 69 // URLRequestContextStorage can often be contained within a URLRequestContext | 71 // URLRequestContextStorage can often be contained within a URLRequestContext |
| 70 // subclass. | 72 // subclass. |
| 71 URLRequestContext* const context_; | 73 URLRequestContext* const context_; |
| 72 | 74 |
| 73 // Owned members. | 75 // Owned members. |
| 74 scoped_ptr<NetLog> net_log_; | 76 scoped_ptr<NetLog> net_log_; |
| 75 scoped_ptr<HostResolver> host_resolver_; | 77 scoped_ptr<HostResolver> host_resolver_; |
| 76 scoped_ptr<CertVerifier> cert_verifier_; | 78 scoped_ptr<CertVerifier> cert_verifier_; |
| 77 scoped_ptr<OriginBoundCertService> origin_bound_cert_service_; | 79 scoped_ptr<OriginBoundCertService> origin_bound_cert_service_; |
| 78 scoped_ptr<DnsRRResolver> dnsrr_resolver_; | 80 scoped_ptr<DnsRRResolver> dnsrr_resolver_; |
| 79 scoped_ptr<DnsCertProvenanceChecker> dns_cert_checker_; | 81 scoped_ptr<DnsCertProvenanceChecker> dns_cert_checker_; |
| 80 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory_; | 82 scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory_; |
| 81 scoped_ptr<ProxyService> proxy_service_; | 83 scoped_ptr<ProxyService> proxy_service_; |
| 82 // TODO(willchan): Remove refcounting on these members. | 84 // TODO(willchan): Remove refcounting on these members. |
| 83 scoped_refptr<SSLConfigService> ssl_config_service_; | 85 scoped_refptr<SSLConfigService> ssl_config_service_; |
| 84 scoped_ptr<NetworkDelegate> network_delegate_; | 86 scoped_ptr<NetworkDelegate> network_delegate_; |
| 87 HttpServerProperties* http_server_properties_; |
| 85 scoped_refptr<CookieStore> cookie_store_; | 88 scoped_refptr<CookieStore> cookie_store_; |
| 86 scoped_ptr<TransportSecurityState> transport_security_state_; | 89 scoped_ptr<TransportSecurityState> transport_security_state_; |
| 87 | 90 |
| 88 scoped_ptr<HttpTransactionFactory> http_transaction_factory_; | 91 scoped_ptr<HttpTransactionFactory> http_transaction_factory_; |
| 89 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; | 92 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; |
| 90 scoped_ptr<URLRequestJobFactory> job_factory_; | 93 scoped_ptr<URLRequestJobFactory> job_factory_; |
| 91 | 94 |
| 92 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); | 95 DISALLOW_COPY_AND_ASSIGN(URLRequestContextStorage); |
| 93 }; | 96 }; |
| 94 | 97 |
| 95 } // namespace net | 98 } // namespace net |
| 96 | 99 |
| 97 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ | 100 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_STORAGE_H_ |
| OLD | NEW |