summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/disk_cache.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 01:30:53 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-14 01:30:53 +0000
commit7d7ad6e4439730c800ed8de654378683f587ee3a (patch)
tree8912f0d50a86565e62623c1a806c3869f90be90a /net/disk_cache/disk_cache.h
parent56ee3109efdf0eae868fc75fc52c64a226d40579 (diff)
downloadchromium_src-7d7ad6e4439730c800ed8de654378683f587ee3a.zip
chromium_src-7d7ad6e4439730c800ed8de654378683f587ee3a.tar.gz
chromium_src-7d7ad6e4439730c800ed8de654378683f587ee3a.tar.bz2
Http Cache: Use asynchronous Open/Create/Doom entry calls.
More changes to the state machine: now we really issue asynchronous calls when getting new cache entries. We have to add a new serialization mechanism to the http cache in order to handle races among multiple requests creating and opening the same entry. BUG=26729 TEST=unittests Review URL: http://codereview.chromium.org/523019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36211 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_cache.h')
-rw-r--r--net/disk_cache/disk_cache.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h
index c47bd47..3d2793b 100644
--- a/net/disk_cache/disk_cache.h
+++ b/net/disk_cache/disk_cache.h
@@ -113,8 +113,15 @@ class Backend {
CompletionCallback* callback) = 0;
// Marks the entry, specified by the given key, for deletion.
+ // Note: This method is deprecated.
virtual bool DoomEntry(const std::string& key) = 0;
+ // Marks the entry, specified by the given key, for deletion. The return value
+ // is a net error code. If this method returns ERR_IO_PENDING, the |callback|
+ // will be invoked after the entry is doomed.
+ virtual int DoomEntry(const std::string& key,
+ CompletionCallback* callback) = 0;
+
// Marks all entries for deletion.
// Note: This method is deprecated.
virtual bool DoomAllEntries() = 0;