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/disk_cache/simple/simple_entry_impl.h

Issue 23486006: Track entries pending Doom in SimpleCache backend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 scoped_ptr<base::Time> last_used, 210 scoped_ptr<base::Time> last_used,
211 scoped_ptr<int> result); 211 scoped_ptr<int> result);
212 212
213 // Called after an asynchronous write completes. 213 // Called after an asynchronous write completes.
214 void WriteOperationComplete(int stream_index, 214 void WriteOperationComplete(int stream_index,
215 const CompletionCallback& completion_callback, 215 const CompletionCallback& completion_callback,
216 scoped_ptr<SimpleEntryStat> entry_stat, 216 scoped_ptr<SimpleEntryStat> entry_stat,
217 scoped_ptr<int> result); 217 scoped_ptr<int> result);
218 218
219 // Called after an asynchronous doom completes. 219 // Called after an asynchronous doom completes.
220 void DoomOperationComplete(const CompletionCallback& callback, 220 void DoomOperationComplete(const base::WeakPtr<SimpleBackendImpl>& backend,
221 const CompletionCallback& callback,
221 State state_to_restore, 222 State state_to_restore,
222 int result); 223 int result);
223 224
224 // Called after validating the checksums on an entry. Passes through the 225 // Called after validating the checksums on an entry. Passes through the
225 // original result if successful, propogates the error if the checksum does 226 // original result if successful, propogates the error if the checksum does
226 // not validate. 227 // not validate.
227 void ChecksumOperationComplete( 228 void ChecksumOperationComplete(
228 int stream_index, 229 int stream_index,
229 int orig_result, 230 int orig_result,
230 const CompletionCallback& completion_callback, 231 const CompletionCallback& completion_callback,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 std::queue<SimpleEntryOperation> pending_operations_; 289 std::queue<SimpleEntryOperation> pending_operations_;
289 290
290 net::BoundNetLog net_log_; 291 net::BoundNetLog net_log_;
291 292
292 scoped_ptr<SimpleEntryOperation> executing_operation_; 293 scoped_ptr<SimpleEntryOperation> executing_operation_;
293 }; 294 };
294 295
295 } // namespace disk_cache 296 } // namespace disk_cache
296 297
297 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ 298 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698