diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-10 23:06:33 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-10 23:06:33 +0000 |
commit | 02e7a01ff83e7e6aa637809ca43cff5da5dbe1c0 (patch) | |
tree | b15131ddaf67763f28080627bddde1d362923c55 /net/http/http_cache_transaction.h | |
parent | 3334c0d1ab15bc3c45f98bf8f63e8eb75c851c2b (diff) | |
download | chromium_src-02e7a01ff83e7e6aa637809ca43cff5da5dbe1c0.zip chromium_src-02e7a01ff83e7e6aa637809ca43cff5da5dbe1c0.tar.gz chromium_src-02e7a01ff83e7e6aa637809ca43cff5da5dbe1c0.tar.bz2 |
Http cache: Add a check to MockHttpCache to make sure
that we always use a completion callback when making
disk cache requests, and add new states to truncate the
entry's metadata.
BUG=26729
TEST=unittests
Review URL: http://codereview.chromium.org/2006007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache_transaction.h')
-rw-r--r-- | net/http/http_cache_transaction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h index 4d16a25..4dc39ac 100644 --- a/net/http/http_cache_transaction.h +++ b/net/http/http_cache_transaction.h @@ -133,6 +133,8 @@ class HttpCache::Transaction : public HttpTransaction { STATE_OVERWRITE_CACHED_RESPONSE, STATE_TRUNCATE_CACHED_DATA, STATE_TRUNCATE_CACHED_DATA_COMPLETE, + STATE_TRUNCATE_CACHED_METADATA, + STATE_TRUNCATE_CACHED_METADATA_COMPLETE, STATE_PARTIAL_HEADERS_RECEIVED, STATE_CACHE_READ_RESPONSE, STATE_CACHE_READ_RESPONSE_COMPLETE, @@ -184,6 +186,8 @@ class HttpCache::Transaction : public HttpTransaction { int DoOverwriteCachedResponse(); int DoTruncateCachedData(); int DoTruncateCachedDataComplete(int result); + int DoTruncateCachedMetadata(); + int DoTruncateCachedMetadataComplete(int result); int DoPartialHeadersReceived(); int DoCacheReadResponse(); int DoCacheReadResponseComplete(int result); |