| 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 // 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 25 matching lines...) Expand all Loading... |
| 36 class GURL; | 36 class GURL; |
| 37 | 37 |
| 38 namespace disk_cache { | 38 namespace disk_cache { |
| 39 class Backend; | 39 class Backend; |
| 40 class Entry; | 40 class Entry; |
| 41 } | 41 } |
| 42 | 42 |
| 43 namespace net { | 43 namespace net { |
| 44 | 44 |
| 45 class CertVerifier; | 45 class CertVerifier; |
| 46 class DnsCertProvenanceChecker; | |
| 47 class HostResolver; | 46 class HostResolver; |
| 48 class HttpAuthHandlerFactory; | 47 class HttpAuthHandlerFactory; |
| 49 class HttpNetworkSession; | 48 class HttpNetworkSession; |
| 50 class HttpResponseInfo; | 49 class HttpResponseInfo; |
| 51 class HttpServerProperties; | 50 class HttpServerProperties; |
| 52 class IOBuffer; | 51 class IOBuffer; |
| 53 class NetLog; | 52 class NetLog; |
| 54 class NetworkDelegate; | 53 class NetworkDelegate; |
| 55 class OriginBoundCertService; | 54 class OriginBoundCertService; |
| 56 class ProxyService; | 55 class ProxyService; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 int max_bytes_; | 116 int max_bytes_; |
| 118 scoped_refptr<base::MessageLoopProxy> thread_; | 117 scoped_refptr<base::MessageLoopProxy> thread_; |
| 119 }; | 118 }; |
| 120 | 119 |
| 121 // The disk cache is initialized lazily (by CreateTransaction) in this case. | 120 // The disk cache is initialized lazily (by CreateTransaction) in this case. |
| 122 // The HttpCache takes ownership of the |backend_factory|. | 121 // The HttpCache takes ownership of the |backend_factory|. |
| 123 HttpCache(HostResolver* host_resolver, | 122 HttpCache(HostResolver* host_resolver, |
| 124 CertVerifier* cert_verifier, | 123 CertVerifier* cert_verifier, |
| 125 OriginBoundCertService* origin_bound_cert_service, | 124 OriginBoundCertService* origin_bound_cert_service, |
| 126 TransportSecurityState* transport_security_state, | 125 TransportSecurityState* transport_security_state, |
| 127 DnsCertProvenanceChecker* dns_cert_checker, | |
| 128 ProxyService* proxy_service, | 126 ProxyService* proxy_service, |
| 129 const std::string& ssl_session_cache_shard, | 127 const std::string& ssl_session_cache_shard, |
| 130 SSLConfigService* ssl_config_service, | 128 SSLConfigService* ssl_config_service, |
| 131 HttpAuthHandlerFactory* http_auth_handler_factory, | 129 HttpAuthHandlerFactory* http_auth_handler_factory, |
| 132 NetworkDelegate* network_delegate, | 130 NetworkDelegate* network_delegate, |
| 133 HttpServerProperties* http_server_properties, | 131 HttpServerProperties* http_server_properties, |
| 134 NetLog* net_log, | 132 NetLog* net_log, |
| 135 BackendFactory* backend_factory); | 133 BackendFactory* backend_factory); |
| 136 | 134 |
| 137 // The disk cache is initialized lazily (by CreateTransaction) in this case. | 135 // The disk cache is initialized lazily (by CreateTransaction) in this case. |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 PendingOpsMap pending_ops_; | 380 PendingOpsMap pending_ops_; |
| 383 | 381 |
| 384 scoped_ptr<PlaybackCacheMap> playback_cache_map_; | 382 scoped_ptr<PlaybackCacheMap> playback_cache_map_; |
| 385 | 383 |
| 386 DISALLOW_COPY_AND_ASSIGN(HttpCache); | 384 DISALLOW_COPY_AND_ASSIGN(HttpCache); |
| 387 }; | 385 }; |
| 388 | 386 |
| 389 } // namespace net | 387 } // namespace net |
| 390 | 388 |
| 391 #endif // NET_HTTP_HTTP_CACHE_H_ | 389 #endif // NET_HTTP_HTTP_CACHE_H_ |
| OLD | NEW |