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

Unified Diff: net/disk_cache/simple/simple_synchronous_entry.h

Issue 22859060: Fix race condition for non-open/create operations happening after a doom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only make doom operations use the pending operations queue Created 7 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 side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/simple/simple_synchronous_entry.h
diff --git a/net/disk_cache/simple/simple_synchronous_entry.h b/net/disk_cache/simple/simple_synchronous_entry.h
index f591c9a0f93ef026fcccf139da225b8495f9f369..ff7385c69a3161c2a1032ca4694d64c58f0a61aa 100644
--- a/net/disk_cache/simple/simple_synchronous_entry.h
+++ b/net/disk_cache/simple/simple_synchronous_entry.h
@@ -84,12 +84,11 @@ class SimpleSynchronousEntry {
// Deletes an entry without first Opening it. Does not check if there is
// already an Entry object in memory holding the open files. Be careful! This
- // is meant to be used by the Backend::DoomEntry() call. |callback| will be
- // run by |callback_runner|.
- static void DoomEntry(const base::FilePath& path,
- const std::string& key,
- uint64 entry_hash,
- int* out_result);
+ // is meant to be used by the Backend::DoomEntry() call. Returns a net error
+ // code.
Randy Smith (Not in Mondays) 2013/09/03 18:48:19 Suggestion: Now that dooms on active entries are d
Philippe 2013/09/04 09:35:23 Thanks Randy. I find that the current comment wasn
Randy Smith (Not in Mondays) 2013/09/04 15:44:16 Awesome; thank you. Just because I'm a (maybe too
Philippe 2013/09/04 15:50:32 Done.
+ static int DoomEntry(const base::FilePath& path,
+ const std::string& key,
+ uint64 entry_hash);
// Like |DoomEntry()| above. Deletes all entries corresponding to the
// |key_hashes|. Succeeds only when all entries are deleted. Returns a net

Powered by Google App Engine
This is Rietveld 408576698