| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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. |
| 11 // | 11 // |
| 12 // See HttpTransactionFactory and HttpTransaction for more details. | 12 // See HttpTransactionFactory and HttpTransaction for more details. |
| 13 | 13 |
| 14 #ifndef NET_HTTP_HTTP_CACHE_H_ | 14 #ifndef NET_HTTP_HTTP_CACHE_H_ |
| 15 #define NET_HTTP_HTTP_CACHE_H_ | 15 #define NET_HTTP_HTTP_CACHE_H_ |
| 16 | 16 |
| 17 #include <list> | 17 #include <list> |
| 18 #include <set> | 18 #include <set> |
| 19 | 19 |
| 20 #include "base/basictypes.h" | 20 #include "base/basictypes.h" |
| 21 #include "base/hash_tables.h" | 21 #include "base/hash_tables.h" |
| 22 #include "base/scoped_ptr.h" |
| 22 #include "base/task.h" | 23 #include "base/task.h" |
| 23 #include "net/http/http_transaction_factory.h" | 24 #include "net/http/http_transaction_factory.h" |
| 24 | 25 |
| 25 namespace disk_cache { | 26 namespace disk_cache { |
| 26 class Backend; | 27 class Backend; |
| 27 class Entry; | 28 class Entry; |
| 28 } | 29 } |
| 29 | 30 |
| 30 namespace net { | 31 namespace net { |
| 31 | 32 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 scoped_ptr<PlaybackCacheMap> playback_cache_map_; | 191 scoped_ptr<PlaybackCacheMap> playback_cache_map_; |
| 191 | 192 |
| 192 RevocableStore transactions_; | 193 RevocableStore transactions_; |
| 193 | 194 |
| 194 DISALLOW_COPY_AND_ASSIGN(HttpCache); | 195 DISALLOW_COPY_AND_ASSIGN(HttpCache); |
| 195 }; | 196 }; |
| 196 | 197 |
| 197 } // namespace net | 198 } // namespace net |
| 198 | 199 |
| 199 #endif // NET_HTTP_HTTP_CACHE_H_ | 200 #endif // NET_HTTP_HTTP_CACHE_H_ |
| OLD | NEW |