Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: net/http/http_cache.h

Issue 21369: Use RevocableStore to isolate the http cache from its transactions.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698