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

Unified Diff: third_party/WebKit/Source/modules/fetch/RequestInit.cpp

Issue 2811623002: Fetch API: Add Request#cache attribute (Closed)
Patch Set: address comments Created 3 years, 8 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
Index: third_party/WebKit/Source/modules/fetch/RequestInit.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
index d23ae70fb64ed15c1837a740825ab5d27367068a..290bbf7c06f4240e09c08c493dcadc27a08c09be 100644
--- a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
+++ b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
@@ -45,6 +45,9 @@ RequestInit::RequestInit(ExecutionContext* context,
}
}
are_any_members_set |= DictionaryHelper::Get(options, "mode", mode);
+ if (RuntimeEnabledFeatures::fetchRequestCacheEnabled())
+ are_any_members_set |= DictionaryHelper::Get(options, "cache", cache);
+
are_any_members_set |= DictionaryHelper::Get(options, "redirect", redirect);
AtomicString referrer_string;
bool is_referrer_string_set = DictionaryHelper::GetWithUndefinedCheck(
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/RequestInit.h ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698