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

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

Issue 165089: Http Cache: Deactivate entries without having the key of the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 140
141 // Methods ------------------------------------------------------------------ 141 // Methods ------------------------------------------------------------------
142 142
143 std::string GenerateCacheKey(const HttpRequestInfo*); 143 std::string GenerateCacheKey(const HttpRequestInfo*);
144 void DoomEntry(const std::string& key); 144 void DoomEntry(const std::string& key);
145 void FinalizeDoomedEntry(ActiveEntry* entry); 145 void FinalizeDoomedEntry(ActiveEntry* entry);
146 ActiveEntry* FindActiveEntry(const std::string& key); 146 ActiveEntry* FindActiveEntry(const std::string& key);
147 ActiveEntry* ActivateEntry(const std::string& key, disk_cache::Entry*); 147 ActiveEntry* ActivateEntry(const std::string& key, disk_cache::Entry*);
148 void DeactivateEntry(ActiveEntry* entry); 148 void DeactivateEntry(ActiveEntry* entry);
149 void SlowDeactivateEntry(ActiveEntry* entry);
149 ActiveEntry* OpenEntry(const std::string& key); 150 ActiveEntry* OpenEntry(const std::string& key);
150 ActiveEntry* CreateEntry(const std::string& cache_key); 151 ActiveEntry* CreateEntry(const std::string& cache_key);
151 void DestroyEntry(ActiveEntry* entry); 152 void DestroyEntry(ActiveEntry* entry);
152 int AddTransactionToEntry(ActiveEntry* entry, Transaction* trans); 153 int AddTransactionToEntry(ActiveEntry* entry, Transaction* trans);
153 void DoneWithEntry(ActiveEntry* entry, Transaction* trans); 154 void DoneWithEntry(ActiveEntry* entry, Transaction* trans);
154 void DoneWritingToEntry(ActiveEntry* entry, bool success); 155 void DoneWritingToEntry(ActiveEntry* entry, bool success);
155 void DoneReadingFromEntry(ActiveEntry* entry, Transaction* trans); 156 void DoneReadingFromEntry(ActiveEntry* entry, Transaction* trans);
156 void ConvertWriterToReader(ActiveEntry* entry); 157 void ConvertWriterToReader(ActiveEntry* entry);
157 void RemovePendingTransaction(Transaction* trans); 158 void RemovePendingTransaction(Transaction* trans);
158 void ProcessPendingQueue(ActiveEntry* entry); 159 void ProcessPendingQueue(ActiveEntry* entry);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
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