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

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: 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 c380c7916aba33ea7a9f736f02a34bfc75eea808..936bb96e357cd465879ec17fd7b8577b539acb3f 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