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

Unified Diff: content/public/common/web_preferences.cc

Issue 697673002: Script streaming: Add more Finch experiments for streaming policies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops Created 6 years, 1 month 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 | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/web_preferences.cc
diff --git a/content/public/common/web_preferences.cc b/content/public/common/web_preferences.cc
index aec5d7471e26016d83d095cd5c4bd5f7d2a3e770..4d925a2512471bee05774d9b05c502f46a9a57fc 100644
--- a/content/public/common/web_preferences.cc
+++ b/content/public/common/web_preferences.cc
@@ -40,6 +40,18 @@ COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_CODE,
COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_LAST,
WebSettings::V8CacheOptionsCode);
+COMPILE_ASSERT_MATCHING_ENUMS(V8_SCRIPT_STREAMING_MODE_ALL,
+ WebSettings::V8ScriptStreamingModeAll);
+COMPILE_ASSERT_MATCHING_ENUMS(
+ V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER,
+ WebSettings::V8ScriptStreamingModeOnlyAsyncAndDefer);
+COMPILE_ASSERT_MATCHING_ENUMS(
+ V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING,
+ WebSettings::V8ScriptStreamingModeAllPlusBlockParsingBlocking);
+COMPILE_ASSERT_MATCHING_ENUMS(
+ V8_SCRIPT_STREAMING_MODE_LAST,
+ WebSettings::V8ScriptStreamingModeAllPlusBlockParsingBlocking);
+
WebPreferences::WebPreferences()
: default_font_size(16),
default_fixed_font_size(13),
@@ -139,6 +151,7 @@ WebPreferences::WebPreferences()
navigate_on_drag_drop(true),
v8_cache_options(V8_CACHE_OPTIONS_OFF),
v8_script_streaming_enabled(false),
+ v8_script_streaming_mode(V8_SCRIPT_STREAMING_MODE_ALL),
slimming_paint_enabled(false),
cookie_enabled(true),
pepper_accelerated_video_decode_enabled(false)
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698