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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
176 | 176 |
177 // The set of active entries indexed by cache key | 177 // The set of active entries indexed by cache key |
178 ActiveEntriesMap active_entries_; | 178 ActiveEntriesMap active_entries_; |
179 | 179 |
180 // The set of doomed entries | 180 // The set of doomed entries |
181 ActiveEntriesSet doomed_entries_; | 181 ActiveEntriesSet doomed_entries_; |
182 | 182 |
183 ScopedRunnableMethodFactory<HttpCache> task_factory_; | 183 ScopedRunnableMethodFactory<HttpCache> task_factory_; |
184 | 184 |
185 bool in_memory_cache_; | 185 bool in_memory_cache_; |
186 bool deleted_; // TODO(rvargas): remove this member. | |
darin (slow to review)
2009/07/06 18:27:05
maybe include a bug link? then if the bug is clos
| |
186 int cache_size_; | 187 int cache_size_; |
187 | 188 |
188 typedef base::hash_map<std::string, int> PlaybackCacheMap; | 189 typedef base::hash_map<std::string, int> PlaybackCacheMap; |
189 scoped_ptr<PlaybackCacheMap> playback_cache_map_; | 190 scoped_ptr<PlaybackCacheMap> playback_cache_map_; |
190 | 191 |
191 RevocableStore transactions_; | 192 RevocableStore transactions_; |
192 | 193 |
193 DISALLOW_COPY_AND_ASSIGN(HttpCache); | 194 DISALLOW_COPY_AND_ASSIGN(HttpCache); |
194 }; | 195 }; |
195 | 196 |
196 } // namespace net | 197 } // namespace net |
197 | 198 |
198 #endif // NET_HTTP_HTTP_CACHE_H_ | 199 #endif // NET_HTTP_HTTP_CACHE_H_ |
OLD | NEW |