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

Unified Diff: Source/web/WebRuntimeFeatures.cpp

Issue 1031493002: Add "StaleWhileRevalidateCacheControl" runtime flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | « Source/platform/RuntimeEnabledFeatures.in ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebRuntimeFeatures.cpp
diff --git a/Source/web/WebRuntimeFeatures.cpp b/Source/web/WebRuntimeFeatures.cpp
index 8abfc2a347d3f6ecf4c3d7d5a593c4b2ec4d4f12..ca0c99bda8079c1d829a456249c4621f0e53aada 100644
--- a/Source/web/WebRuntimeFeatures.cpp
+++ b/Source/web/WebRuntimeFeatures.cpp
@@ -318,6 +318,11 @@ void WebRuntimeFeatures::enablePushMessagingHasPermission(bool enable)
RuntimeEnabledFeatures::setPushMessagingHasPermissionEnabled(enable);
}
+void WebRuntimeFeatures::enableStaleWhileRevalidateCacheControl(bool enable)
+{
+ RuntimeEnabledFeatures::setStaleWhileRevalidateCacheControlEnabled(enable);
+}
+
void WebRuntimeFeatures::enableUnsafeES3APIs(bool enable)
{
RuntimeEnabledFeatures::setUnsafeES3APIsEnabled(enable);
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698