| 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 // This file declares a HttpTransactionFactory implementation that can be | 5 // This file declares a HttpTransactionFactory implementation that can be |
| 6 // layered on top of another HttpTransactionFactory to add HTTP caching. The | 6 // layered on top of another HttpTransactionFactory to add HTTP caching. The |
| 7 // caching logic follows RFC 2616 (any exceptions are called out in the code). | 7 // caching logic follows RFC 2616 (any exceptions are called out in the code). |
| 8 // | 8 // |
| 9 // The HttpCache takes a disk_cache::Backend as a parameter, and uses that for | 9 // The HttpCache takes a disk_cache::Backend as a parameter, and uses that for |
| 10 // the cache storage. | 10 // the cache storage. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 class CertVerifier; | 45 class CertVerifier; |
| 46 class HostResolver; | 46 class HostResolver; |
| 47 class HttpAuthHandlerFactory; | 47 class HttpAuthHandlerFactory; |
| 48 class HttpNetworkSession; | 48 class HttpNetworkSession; |
| 49 class HttpResponseInfo; | 49 class HttpResponseInfo; |
| 50 class HttpServerProperties; | 50 class HttpServerProperties; |
| 51 class IOBuffer; | 51 class IOBuffer; |
| 52 class NetLog; | 52 class NetLog; |
| 53 class NetworkDelegate; | 53 class NetworkDelegate; |
| 54 class OriginBoundCertService; | 54 class ServerBoundCertService; |
| 55 class ProxyService; | 55 class ProxyService; |
| 56 class SSLConfigService; | 56 class SSLConfigService; |
| 57 class TransportSecurityState; | 57 class TransportSecurityState; |
| 58 class ViewCacheHelper; | 58 class ViewCacheHelper; |
| 59 struct HttpRequestInfo; | 59 struct HttpRequestInfo; |
| 60 | 60 |
| 61 class NET_EXPORT HttpCache : public HttpTransactionFactory, | 61 class NET_EXPORT HttpCache : public HttpTransactionFactory, |
| 62 public base::SupportsWeakPtr<HttpCache>, | 62 public base::SupportsWeakPtr<HttpCache>, |
| 63 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 63 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
| 64 public: | 64 public: |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 CacheType type_; | 114 CacheType type_; |
| 115 const FilePath path_; | 115 const FilePath path_; |
| 116 int max_bytes_; | 116 int max_bytes_; |
| 117 scoped_refptr<base::MessageLoopProxy> thread_; | 117 scoped_refptr<base::MessageLoopProxy> thread_; |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 // The disk cache is initialized lazily (by CreateTransaction) in this case. | 120 // The disk cache is initialized lazily (by CreateTransaction) in this case. |
| 121 // The HttpCache takes ownership of the |backend_factory|. | 121 // The HttpCache takes ownership of the |backend_factory|. |
| 122 HttpCache(HostResolver* host_resolver, | 122 HttpCache(HostResolver* host_resolver, |
| 123 CertVerifier* cert_verifier, | 123 CertVerifier* cert_verifier, |
| 124 OriginBoundCertService* origin_bound_cert_service, | 124 ServerBoundCertService* server_bound_cert_service, |
| 125 TransportSecurityState* transport_security_state, | 125 TransportSecurityState* transport_security_state, |
| 126 ProxyService* proxy_service, | 126 ProxyService* proxy_service, |
| 127 const std::string& ssl_session_cache_shard, | 127 const std::string& ssl_session_cache_shard, |
| 128 SSLConfigService* ssl_config_service, | 128 SSLConfigService* ssl_config_service, |
| 129 HttpAuthHandlerFactory* http_auth_handler_factory, | 129 HttpAuthHandlerFactory* http_auth_handler_factory, |
| 130 NetworkDelegate* network_delegate, | 130 NetworkDelegate* network_delegate, |
| 131 HttpServerProperties* http_server_properties, | 131 HttpServerProperties* http_server_properties, |
| 132 NetLog* net_log, | 132 NetLog* net_log, |
| 133 BackendFactory* backend_factory); | 133 BackendFactory* backend_factory); |
| 134 | 134 |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 PendingOpsMap pending_ops_; | 394 PendingOpsMap pending_ops_; |
| 395 | 395 |
| 396 scoped_ptr<PlaybackCacheMap> playback_cache_map_; | 396 scoped_ptr<PlaybackCacheMap> playback_cache_map_; |
| 397 | 397 |
| 398 DISALLOW_COPY_AND_ASSIGN(HttpCache); | 398 DISALLOW_COPY_AND_ASSIGN(HttpCache); |
| 399 }; | 399 }; |
| 400 | 400 |
| 401 } // namespace net | 401 } // namespace net |
| 402 | 402 |
| 403 #endif // NET_HTTP_HTTP_CACHE_H_ | 403 #endif // NET_HTTP_HTTP_CACHE_H_ |
| OLD | NEW |