| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 // The disk cache is initialized lazily (by CreateTransaction) in this case. | 121 // The disk cache is initialized lazily (by CreateTransaction) in this case. |
| 122 // The HttpCache takes ownership of the |backend_factory|. | 122 // The HttpCache takes ownership of the |backend_factory|. |
| 123 HttpCache(HostResolver* host_resolver, | 123 HttpCache(HostResolver* host_resolver, |
| 124 CertVerifier* cert_verifier, | 124 CertVerifier* cert_verifier, |
| 125 OriginBoundCertService* origin_bound_cert_service, | 125 OriginBoundCertService* origin_bound_cert_service, |
| 126 TransportSecurityState* transport_security_state, | 126 TransportSecurityState* transport_security_state, |
| 127 DnsCertProvenanceChecker* dns_cert_checker, | 127 DnsCertProvenanceChecker* dns_cert_checker, |
| 128 ProxyService* proxy_service, | 128 ProxyService* proxy_service, |
| 129 const std::string& ssl_session_cache_shard, |
| 129 SSLConfigService* ssl_config_service, | 130 SSLConfigService* ssl_config_service, |
| 130 HttpAuthHandlerFactory* http_auth_handler_factory, | 131 HttpAuthHandlerFactory* http_auth_handler_factory, |
| 131 NetworkDelegate* network_delegate, | 132 NetworkDelegate* network_delegate, |
| 132 HttpServerProperties* http_server_properties, | 133 HttpServerProperties* http_server_properties, |
| 133 NetLog* net_log, | 134 NetLog* net_log, |
| 134 BackendFactory* backend_factory); | 135 BackendFactory* backend_factory); |
| 135 | 136 |
| 136 // The disk cache is initialized lazily (by CreateTransaction) in this case. | 137 // The disk cache is initialized lazily (by CreateTransaction) in this case. |
| 137 // Provide an existing HttpNetworkSession, the cache can construct a | 138 // Provide an existing HttpNetworkSession, the cache can construct a |
| 138 // network layer with a shared HttpNetworkSession in order for multiple | 139 // network layer with a shared HttpNetworkSession in order for multiple |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 PendingOpsMap pending_ops_; | 382 PendingOpsMap pending_ops_; |
| 382 | 383 |
| 383 scoped_ptr<PlaybackCacheMap> playback_cache_map_; | 384 scoped_ptr<PlaybackCacheMap> playback_cache_map_; |
| 384 | 385 |
| 385 DISALLOW_COPY_AND_ASSIGN(HttpCache); | 386 DISALLOW_COPY_AND_ASSIGN(HttpCache); |
| 386 }; | 387 }; |
| 387 | 388 |
| 388 } // namespace net | 389 } // namespace net |
| 389 | 390 |
| 390 #endif // NET_HTTP_HTTP_CACHE_H_ | 391 #endif // NET_HTTP_HTTP_CACHE_H_ |
| OLD | NEW |