From 02e7a01ff83e7e6aa637809ca43cff5da5dbe1c0 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Mon, 10 May 2010 23:06:33 +0000 Subject: 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 --- net/http/http_cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/http/http_cache.h') 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, -- cgit v1.1