summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-21 18:57:01 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-21 18:57:01 +0000
commit504829400b156f8ab93afabeed5cb5837902a5c4 (patch)
tree32be186199ebcbb23e544be40315b46eeee07b44 /net/http/http_cache.h
parentcef3362fd03475dc6e47637a823b086e8cf13b95 (diff)
downloadchromium_src-504829400b156f8ab93afabeed5cb5837902a5c4.zip
chromium_src-504829400b156f8ab93afabeed5cb5837902a5c4.tar.gz
chromium_src-504829400b156f8ab93afabeed5cb5837902a5c4.tar.bz2
Http cache: Use asynchronous IO to read an write the
response headers from the disk cache. BUG=26729 TEST=current unit tests. Review URL: http://codereview.chromium.org/506081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35094 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r--net/http/http_cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index 7926d5d..959b76c 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -107,12 +107,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.
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.
static bool WriteResponseInfo(disk_cache::Entry* disk_entry,
const HttpResponseInfo* response_info,
bool skip_transient_headers,