summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache_transaction.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_transaction.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_transaction.h')
-rw-r--r--net/http/http_cache_transaction.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h
index 0e66f4d..14e39c7 100644
--- a/net/http/http_cache_transaction.h
+++ b/net/http/http_cache_transaction.h
@@ -165,7 +165,7 @@ class HttpCache::Transaction : public HttpTransaction {
int DoTruncateCachedDataComplete(int result);
int DoPartialHeadersReceived();
int DoCacheReadResponse();
- int DoCacheReadResponseComplete();
+ int DoCacheReadResponseComplete(int result);
int DoCacheWriteResponse();
int DoCacheWriteTruncatedResponse();
int DoCacheWriteResponseComplete(int result);
@@ -301,13 +301,15 @@ class HttpCache::Transaction : public HttpTransaction {
bool truncated_; // We don't have all the response data.
bool server_responded_206_;
scoped_refptr<IOBuffer> read_buf_;
- int read_buf_len_;
+ int io_buf_len_;
int read_offset_;
int effective_load_flags_;
scoped_ptr<PartialData> partial_; // We are dealing with range requests.
uint64 final_upload_progress_;
CompletionCallbackImpl<Transaction> network_callback_;
scoped_refptr<CancelableCompletionCallback<Transaction> > cache_callback_;
+ scoped_refptr<CancelableCompletionCallback<Transaction> >
+ write_headers_callback_;
};
} // namespace net