Index: net/http/http_cache_transaction.h |
diff --git a/net/http/http_cache_transaction.h b/net/http/http_cache_transaction.h |
index 853c456ee686e23d1f0e38f6d322d20dc94ffdc4..ea2f5c833036593364d353fe25afc7dfe1ed0b90 100644 |
--- a/net/http/http_cache_transaction.h |
+++ b/net/http/http_cache_transaction.h |
@@ -172,6 +172,10 @@ class HttpCache::Transaction : public HttpTransaction { |
// and this transaction needs to be restarted. |
void SetValidatingCannotProceed(); |
+ // Invoked to removes the association between a transaction waiting to be |
+ // added to an entry and the entry. |
+ void ResetCachePendingState() { cache_pending_ = false; } |
+ |
// Returns the estimate of dynamically allocated memory in bytes. |
size_t EstimateMemoryUsage() const; |
@@ -210,6 +214,7 @@ class HttpCache::Transaction : public HttpTransaction { |
STATE_CREATE_ENTRY_COMPLETE, |
STATE_ADD_TO_ENTRY, |
STATE_ADD_TO_ENTRY_COMPLETE, |
+ STATE_DONE_HEADERS_ADD_TO_ENTRY_COMPLETE, |
STATE_CACHE_READ_RESPONSE, |
STATE_CACHE_READ_RESPONSE_COMPLETE, |
STATE_TOGGLE_UNUSED_SINCE_PREFETCH, |
@@ -281,6 +286,7 @@ class HttpCache::Transaction : public HttpTransaction { |
int DoCreateEntryComplete(int result); |
int DoAddToEntry(); |
int DoAddToEntryComplete(int result); |
+ int DoDoneHeadersAddToEntryComplete(int result); |
int DoCacheReadResponse(); |
int DoCacheReadResponseComplete(int result); |
int DoCacheToggleUnusedSincePrefetch(); |
@@ -492,6 +498,9 @@ class HttpCache::Transaction : public HttpTransaction { |
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. |
+ // Headers have been received from the network and it's not a match with the |
jkarlin
2017/06/09 17:04:50
newline above this comment
shivanisha
2017/06/12 18:01:23
done
|
+ // existing entry. |
+ bool done_headers_create_new_entry_; |
jkarlin
2017/06/09 17:04:49
newline below the member
shivanisha
2017/06/12 18:01:23
done
|
bool vary_mismatch_; // The request doesn't match the stored vary data. |
bool couldnt_conditionalize_request_; |
bool bypass_lock_for_test_; // A test is exercising the cache lock. |