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

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

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/common_param_traits_macros.h ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/web_preferences.h
diff --git a/content/public/common/web_preferences.h b/content/public/common/web_preferences.h
index d7e65f772ca43a9a72aeecb6f471a5df29b2d6dd..2da8ba63d3e427cc2b13a7cd355733ebc96d1e1c 100644
--- a/content/public/common/web_preferences.h
+++ b/content/public/common/web_preferences.h
@@ -39,6 +39,14 @@ enum V8CacheOptions {
V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_CODE
};
+enum V8ScriptStreamingMode {
+ V8_SCRIPT_STREAMING_MODE_ALL,
+ V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER,
+ V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING,
+ V8_SCRIPT_STREAMING_MODE_LAST =
+ V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING
+};
+
// The ISO 15924 script code for undetermined script aka Common. It's the
// default used on WebKit's side to get/set a font setting when no script is
// specified.
@@ -145,6 +153,7 @@ struct CONTENT_EXPORT WebPreferences {
bool navigate_on_drag_drop;
V8CacheOptions v8_cache_options;
bool v8_script_streaming_enabled;
+ V8ScriptStreamingMode v8_script_streaming_mode;
bool slimming_paint_enabled;
// This flags corresponds to a Page's Settings' setCookieEnabled state. It
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698