Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: net/http/http_cache.h

Issue 2774603003: Doom and create new entry when validation is not a match (Closed)
Patch Set: Rebased with refs/heads/master@{#484325} Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.h
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index e420c7244204874988b4908149bf51a2bd8697a3..c2221cc4e9fbc92d4205cf496dfbcc21501e2034 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -424,6 +424,11 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory {
// Called when the transaction has finished reading from this entry.
void DoneReadingFromEntry(ActiveEntry* entry, Transaction* transaction);
+ // Called when the transaction has received a non-matching response to
+ // validation and it's not the transaction responsible for writing the
+ // response body.
+ void DoomEntryValidationNoMatch(ActiveEntry* entry);
+
// Removes and returns all queued transactions in |entry| in FIFO order. This
// includes transactions that have completed the headers phase and those that
// have not been added to the entry yet in that order. |list| is the output
@@ -431,8 +436,7 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory {
void RemoveAllQueuedTransactions(ActiveEntry* entry, TransactionList* list);
// Processes either writer's failure to write response body or
- // headers_transactions's failure to write headers. Also invoked when headers
- // transaction's validation result is not a match.
+ // headers_transactions's failure to write headers.
void ProcessEntryFailure(ActiveEntry* entry, Transaction* transaction);
// Restarts headers_transaction and done_headers_queue transactions.
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698