| 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. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 ActiveEntriesSet doomed_entries_; | 157 ActiveEntriesSet doomed_entries_; |
| 158 | 158 |
| 159 ScopedRunnableMethodFactory<HttpCache> task_factory_; | 159 ScopedRunnableMethodFactory<HttpCache> task_factory_; |
| 160 | 160 |
| 161 bool in_memory_cache_; | 161 bool in_memory_cache_; |
| 162 int cache_size_; | 162 int cache_size_; |
| 163 | 163 |
| 164 typedef base::hash_map<std::string, int> PlaybackCacheMap; | 164 typedef base::hash_map<std::string, int> PlaybackCacheMap; |
| 165 scoped_ptr<PlaybackCacheMap> playback_cache_map_; | 165 scoped_ptr<PlaybackCacheMap> playback_cache_map_; |
| 166 | 166 |
| 167 RevocableStore transactions_; |
| 168 |
| 167 DISALLOW_COPY_AND_ASSIGN(HttpCache); | 169 DISALLOW_COPY_AND_ASSIGN(HttpCache); |
| 168 }; | 170 }; |
| 169 | 171 |
| 170 } // namespace net | 172 } // namespace net |
| 171 | 173 |
| 172 #endif // NET_HTTP_HTTP_CACHE_H_ | 174 #endif // NET_HTTP_HTTP_CACHE_H_ |
| 173 | 175 |
| OLD | NEW |