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

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

Issue 12223075: Make SimpleEntryImpl::Doom() completely asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix merge Created 7 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 side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/simple/simple_synchronous_entry.cc
diff --git a/net/disk_cache/simple/simple_synchronous_entry.cc b/net/disk_cache/simple/simple_synchronous_entry.cc
index d2a9fbd8c1cf7d63bff0dffb4a85179aca53b2ff..8374b3ad28a721352e229fa82cf2296fba7d7a99 100644
--- a/net/disk_cache/simple/simple_synchronous_entry.cc
+++ b/net/disk_cache/simple/simple_synchronous_entry.cc
@@ -111,17 +111,6 @@ void SimpleSynchronousEntry::DoomEntry(
callback_runner->PostTask(FROM_HERE, base::Bind(callback, net::OK));
}
-void SimpleSynchronousEntry::DoomAndClose() {
- scoped_refptr<TaskRunner> callback_runner = callback_runner_;
- FilePath path = path_;
- std::string key = key_;
-
- Close();
- // |this| is now deleted.
-
- DoomEntry(path, key, callback_runner, net::CompletionCallback());
-}
-
void SimpleSynchronousEntry::Close() {
for (int i = 0; i < kSimpleEntryFileCount; ++i) {
bool result = ClosePlatformFile(files_[i]);

Powered by Google App Engine
This is Rietveld 408576698