| Index: net/http/http_cache_transaction.h
|
| diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h
|
| index 316c15b82d4ce847fcb178a40f72f577f1a5851b..81160d59304fe68e4c81746c3fe10bf6418ef03e 100644
|
| --- a/net/http/http_cache_transaction.h
|
| +++ b/net/http/http_cache_transaction.h
|
| @@ -28,25 +28,6 @@ struct HttpRequestInfo;
|
| // factory.
|
| class HttpCache::Transaction : public HttpTransaction {
|
| public:
|
| - Transaction(HttpCache* cache);
|
| - virtual ~Transaction();
|
| -
|
| - // HttpTransaction methods:
|
| - virtual int Start(const HttpRequestInfo*, CompletionCallback*,
|
| - const BoundNetLog&);
|
| - virtual int RestartIgnoringLastError(CompletionCallback* callback);
|
| - virtual int RestartWithCertificate(X509Certificate* client_cert,
|
| - CompletionCallback* callback);
|
| - virtual int RestartWithAuth(const string16& username,
|
| - const string16& password,
|
| - CompletionCallback* callback);
|
| - virtual bool IsReadyToRestartForAuth();
|
| - virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
|
| - virtual void StopCaching();
|
| - virtual const HttpResponseInfo* GetResponseInfo() const;
|
| - virtual LoadState GetLoadState() const;
|
| - virtual uint64 GetUploadProgress(void) const;
|
| -
|
| // The transaction has the following modes, which apply to how it may access
|
| // its cache entry.
|
| //
|
| @@ -76,6 +57,9 @@ class HttpCache::Transaction : public HttpTransaction {
|
| UPDATE = READ_META | WRITE, // READ_WRITE & ~READ_DATA
|
| };
|
|
|
| + Transaction(HttpCache* cache);
|
| + virtual ~Transaction();
|
| +
|
| Mode mode() const { return mode_; }
|
|
|
| const std::string& key() const { return cache_key_; }
|
| @@ -112,6 +96,22 @@ class HttpCache::Transaction : public HttpTransaction {
|
|
|
| const BoundNetLog& net_log() const;
|
|
|
| + // HttpTransaction methods:
|
| + virtual int Start(const HttpRequestInfo*, CompletionCallback*,
|
| + const BoundNetLog&);
|
| + virtual int RestartIgnoringLastError(CompletionCallback* callback);
|
| + virtual int RestartWithCertificate(X509Certificate* client_cert,
|
| + CompletionCallback* callback);
|
| + virtual int RestartWithAuth(const string16& username,
|
| + const string16& password,
|
| + CompletionCallback* callback);
|
| + virtual bool IsReadyToRestartForAuth();
|
| + virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
|
| + virtual void StopCaching();
|
| + virtual const HttpResponseInfo* GetResponseInfo() const;
|
| + virtual LoadState GetLoadState() const;
|
| + virtual uint64 GetUploadProgress(void) const;
|
| +
|
| private:
|
| static const size_t kNumValidationHeaders = 2;
|
| // Helper struct to pair a header name with its value, for
|
|
|