Chromium Code Reviews| Index: net/http/http_cache_transaction.h |
| diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h |
| index ec88da37e1416febc51c03d538ea5a0af79d2d0a..ef98f2fac5d7dd0347e057afc170e2517793d94c 100644 |
| --- a/net/http/http_cache_transaction.h |
| +++ b/net/http/http_cache_transaction.h |
| @@ -375,9 +375,17 @@ class HttpCache::Transaction : public HttpTransaction { |
| // is always "OK". |
| int OnWriteResponseInfoToEntryComplete(int result); |
| + // Called when the entire request has successfully finished reading. May start |
|
hubbe
2015/07/16 15:56:12
Please specify if you mean that the client has fin
asanka
2015/07/16 17:57:00
Done.
|
| + // the state machine again. Hence should only be called when there are no more |
| + // pending operations. |
| + int DoneWithRequest(); |
| + |
| // Called when we are done writing to the cache entry. |
| void DoneWritingToEntry(bool success); |
| + // Called when we are done with the cache entry. |
| + void DoneWithEntry(bool cancel); |
| + |
| // Returns an error to signal the caller that the current read failed. The |
| // current operation |result| is also logged. If |restart| is true, the |
| // transaction should be restarted. |
| @@ -442,15 +450,16 @@ class HttpCache::Transaction : public HttpTransaction { |
| std::string cache_key_; |
| Mode mode_; |
| bool reading_; // We are already reading. Never reverts to false once set. |
| - bool invalid_range_; // We may bypass the cache for this request. |
| - bool truncated_; // We don't have all the response data. |
| - bool is_sparse_; // The data is stored in sparse byte ranges. |
| + bool invalid_range_; // We may bypass the cache for this request. |
| + bool truncated_; // We don't have all the response data. |
| + bool is_sparse_; // The data is stored in sparse byte ranges. |
| bool range_requested_; // The user requested a byte range. |
| - bool handling_206_; // We must deal with this 206 response. |
| - bool cache_pending_; // We are waiting for the HttpCache. |
| - bool done_reading_; // All available data was read. |
| - bool vary_mismatch_; // The request doesn't match the stored vary data. |
| + bool handling_206_; // We must deal with this 206 response. |
| + bool cache_pending_; // We are waiting for the HttpCache. |
| + bool done_writing_; // All available data was written to the cache entry. |
| + bool vary_mismatch_; // The request doesn't match the stored vary data. |
| bool couldnt_conditionalize_request_; |
| + bool stopped_caching_; // Avoid further writes to the cache. |
| bool bypass_lock_for_test_; // A test is exercising the cache lock. |
| bool fail_conditionalization_for_test_; // Fail ConditionalizeRequest. |
| scoped_refptr<IOBuffer> read_buf_; |