| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 21 matching lines...) Expand all Loading... |
| 32 namespace disk_cache { | 32 namespace disk_cache { |
| 33 class Backend; | 33 class Backend; |
| 34 class Entry; | 34 class Entry; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace net { | 37 namespace net { |
| 38 | 38 |
| 39 class HostResolver; | 39 class HostResolver; |
| 40 class HttpAuthHandlerFactory; | 40 class HttpAuthHandlerFactory; |
| 41 class HttpNetworkSession; | 41 class HttpNetworkSession; |
| 42 class HttpRequestInfo; | 42 struct HttpRequestInfo; |
| 43 class HttpResponseInfo; | 43 class HttpResponseInfo; |
| 44 class IOBuffer; | 44 class IOBuffer; |
| 45 class NetworkChangeNotifier; | 45 class NetworkChangeNotifier; |
| 46 class ProxyService; | 46 class ProxyService; |
| 47 class SSLConfigService; | 47 class SSLConfigService; |
| 48 | 48 |
| 49 class HttpCache : public HttpTransactionFactory, | 49 class HttpCache : public HttpTransactionFactory, |
| 50 public base::SupportsWeakPtr<HttpCache> { | 50 public base::SupportsWeakPtr<HttpCache> { |
| 51 public: | 51 public: |
| 52 ~HttpCache(); | 52 ~HttpCache(); |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 319 |
| 320 typedef base::hash_map<std::string, int> PlaybackCacheMap; | 320 typedef base::hash_map<std::string, int> PlaybackCacheMap; |
| 321 scoped_ptr<PlaybackCacheMap> playback_cache_map_; | 321 scoped_ptr<PlaybackCacheMap> playback_cache_map_; |
| 322 | 322 |
| 323 DISALLOW_COPY_AND_ASSIGN(HttpCache); | 323 DISALLOW_COPY_AND_ASSIGN(HttpCache); |
| 324 }; | 324 }; |
| 325 | 325 |
| 326 } // namespace net | 326 } // namespace net |
| 327 | 327 |
| 328 #endif // NET_HTTP_HTTP_CACHE_H_ | 328 #endif // NET_HTTP_HTTP_CACHE_H_ |
| OLD | NEW |