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

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

Issue 431323003: Implement --v8-cache-options (instead of --enable-preparsed-js-caching) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: content/public/common/web_preferences.h
diff --git a/content/public/common/web_preferences.h b/content/public/common/web_preferences.h
index 78e0e637b3c5a25d97c0c8b7922af89a36370eb6..3ff691dbdeca56446d0b5befb6be0d6c01f40414 100644
--- a/content/public/common/web_preferences.h
+++ b/content/public/common/web_preferences.h
@@ -35,6 +35,13 @@ enum EditingBehavior {
EDITING_BEHAVIOR_LAST = EDITING_BEHAVIOR_ANDROID
};
+enum V8CacheOptions {
+ V8_CACHE_OPTIONS_OFF,
+ V8_CACHE_OPTIONS_PARSE,
+ V8_CACHE_OPTIONS_CODE,
+ V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_CODE
+};
+
// 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.
@@ -140,6 +147,7 @@ struct CONTENT_EXPORT WebPreferences {
int pinch_overlay_scrollbar_thickness;
bool use_solid_color_scrollbars;
bool navigate_on_drag_drop;
+ V8CacheOptions v8_cache_options;
// This flags corresponds to a Page's Settings' setCookieEnabled state. It
// only controls whether or not the "document.cookie" field is properly

Powered by Google App Engine
This is Rietveld 408576698