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

Unified Diff: net/http/http_cache.h

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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 | « net/dns/host_resolver_impl.cc ('k') | 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 1c1338b0d75d8019b82a5964609008b58d85ae0d..8fa1640174abb8db6afcb9a9870a52174020d8e4 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -202,6 +202,12 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
bypass_lock_for_test_ = true;
}
+ // Causes all transactions created after this point to generate a failure
+ // when attempting to conditionalize a network request.
+ void FailConditionalizationForTest() {
+ fail_conditionalization_for_test_ = true;
+ }
+
bool use_stale_while_revalidate() const {
return use_stale_while_revalidate_;
}
@@ -426,6 +432,7 @@ class NET_EXPORT HttpCache : public HttpTransactionFactory,
scoped_ptr<BackendFactory> backend_factory_;
bool building_backend_;
bool bypass_lock_for_test_;
+ bool fail_conditionalization_for_test_;
// true if the implementation of Cache-Control: stale-while-revalidate
// directive is enabled (either via command-line flag or experiment).
« no previous file with comments | « net/dns/host_resolver_impl.cc ('k') | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698