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>2010-03-02 19:10:07 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 19:10:07 +0000
commit47b950579d39dc79127c1dc69f44c33c8ad269b0 (patch)
treea12052d4046260987847c3577b90912915431dcc /net/http/http_cache_transaction.h
parent7e5a07433628b7383ed7402bc18bcc6676d8475f (diff)
downloadchromium_src-47b950579d39dc79127c1dc69f44c33c8ad269b0.zip
chromium_src-47b950579d39dc79127c1dc69f44c33c8ad269b0.tar.gz
chromium_src-47b950579d39dc79127c1dc69f44c33c8ad269b0.tar.bz2
Http cache: Expose storing metadata on a given entry.
BUG=32406 TEST=unittests Review URL: http://codereview.chromium.org/660041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache_transaction.h')
-rw-r--r--net/http/http_cache_transaction.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h
index 7ea1ff0..0adb83a 100644
--- a/net/http/http_cache_transaction.h
+++ b/net/http/http_cache_transaction.h
@@ -72,14 +72,6 @@ class HttpCache::Transaction : public HttpTransaction {
const std::string& key() const { return cache_key_; }
- // Reads up to |buf_len| bytes of meta-data into the provided buffer |buf|,
- // from the HTTP cache entry that backs this transaction (if any).
- // Returns the number of bytes actually read, or a net error code. If the
- // operation cannot complete immediately, returns ERR_IO_PENDING, grabs a
- // reference to the buffer (until completion), and notifies the caller using
- // the provided |callback| when the operatiopn finishes.
- int ReadMetadata(IOBuffer* buf, int buf_len, CompletionCallback* callback);
-
// Writes |buf_len| bytes of meta-data from the provided buffer |buf|. to the
// HTTP cache entry that backs this transaction (if any).
// Returns the number of bytes actually written, or a net error code. If the
@@ -143,6 +135,8 @@ class HttpCache::Transaction : public HttpTransaction {
STATE_CACHE_WRITE_RESPONSE,
STATE_CACHE_WRITE_TRUNCATED_RESPONSE,
STATE_CACHE_WRITE_RESPONSE_COMPLETE,
+ STATE_CACHE_READ_METADATA,
+ STATE_CACHE_READ_METADATA_COMPLETE,
STATE_CACHE_QUERY_DATA,
STATE_CACHE_QUERY_DATA_COMPLETE,
STATE_CACHE_READ_DATA,
@@ -190,6 +184,8 @@ class HttpCache::Transaction : public HttpTransaction {
int DoCacheWriteResponse();
int DoCacheWriteTruncatedResponse();
int DoCacheWriteResponseComplete(int result);
+ int DoCacheReadMetadata();
+ int DoCacheReadMetadataComplete(int result);
int DoCacheQueryData();
int DoCacheQueryDataComplete(int result);
int DoCacheReadData();