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.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.h')
-rw-r--r-- | net/http/http_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h index 472c272..bb2bf48 100644 --- a/net/http/http_cache.h +++ b/net/http/http_cache.h @@ -131,14 +131,14 @@ class HttpCache : public HttpTransactionFactory, // Helper function for reading response info from the disk cache. If the // cache doesn't have the whole resource *|request_truncated| is set to true. - // Avoid this function for performance critical paths as it uses blocking IO. + // NOTE: This method is deprecated. static bool ReadResponseInfo(disk_cache::Entry* disk_entry, HttpResponseInfo* response_info, bool* response_truncated); // Helper function for writing response info into the disk cache. If the // cache doesn't have the whole resource |request_truncated| should be true. - // Avoid this function for performance critical paths as it uses blocking IO. + // NOTE: This method is deprecated. static bool WriteResponseInfo(disk_cache::Entry* disk_entry, const HttpResponseInfo* response_info, bool skip_transient_headers, |