diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-11 23:25:46 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-11 23:25:46 +0000 |
commit | ea75b0a85c31090eea5746b34d45add742607af2 (patch) | |
tree | f048ba9f289e076f06cdaca85ce2a3afa99f99a1 /net/http/http_cache.h | |
parent | 517c34618870253ee2287ae10377870a2b754d70 (diff) | |
download | chromium_src-ea75b0a85c31090eea5746b34d45add742607af2.zip chromium_src-ea75b0a85c31090eea5746b34d45add742607af2.tar.gz chromium_src-ea75b0a85c31090eea5746b34d45add742607af2.tar.bz2 |
Revert 49600 - Http cache: Remove deprecated code.
BUG=26729
TEST=current tests
Review URL: http://codereview.chromium.org/2776007
TBR=rvargas@google.com
Review URL: http://codereview.chromium.org/2779020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49613 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r-- | net/http/http_cache.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h index 04dc144..79c2134 100644 --- a/net/http/http_cache.h +++ b/net/http/http_cache.h @@ -135,6 +135,12 @@ class HttpCache : public HttpTransactionFactory, HttpTransactionFactory* network_layer() { return network_layer_.get(); } + // Returns the cache backend for this HttpCache instance. If the backend + // is not initialized yet, this method will initialize it. If the return + // value is NULL then the backend cannot be initialized. + // This method is deprecated. + disk_cache::Backend* GetBackend(); + // Retrieves the cache backend for this HttpCache instance. If the backend // is not initialized yet, this method will initialize it. The return value is // a network error code, and it could be ERR_IO_PENDING, in which case the @@ -151,6 +157,21 @@ class HttpCache : public HttpTransactionFactory, virtual HttpNetworkSession* GetSession(); virtual void Suspend(bool suspend); + // 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. + // 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. + // NOTE: This method is deprecated. + static bool WriteResponseInfo(disk_cache::Entry* disk_entry, + const HttpResponseInfo* response_info, + bool skip_transient_headers, + bool response_truncated); + // Given a header data blob, convert it to a response info object. static bool ParseResponseInfo(const char* data, int len, HttpResponseInfo* response_info, |