diff options
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, |