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

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

Issue 1914963002: Introduce v8-cache-strategies-for-cache-storage setting flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/public/common/web_preferences.h
diff --git a/content/public/common/web_preferences.h b/content/public/common/web_preferences.h
index 2a75e3087ba1f60a1ca79502a1c491f00d476037..114c9b233388475edbd94c197ac2f504ba3b2ea3 100644
--- a/content/public/common/web_preferences.h
+++ b/content/public/common/web_preferences.h
@@ -42,6 +42,16 @@ enum V8CacheOptions {
V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_CODE
};
+// Strategies to cache V8 data in CacheStorage. (off, normal, or aggressive)
+enum V8CacheStrategiesForCacheStorage {
+ V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_DEFAULT,
+ V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_NONE,
+ V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_NORMAL,
+ V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_AGGRESSIVE,
+ V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_LAST =
+ V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_AGGRESSIVE
+};
+
// ImageAnimationPolicy is used for controlling image animation
// when image frame is rendered for animation.
// See third_party/WebKit/Source/platform/graphics/ImageAnimationPolicy.h
@@ -177,6 +187,7 @@ struct CONTENT_EXPORT WebPreferences {
bool use_solid_color_scrollbars;
bool navigate_on_drag_drop;
V8CacheOptions v8_cache_options;
+ V8CacheStrategiesForCacheStorage v8_cache_strategies_for_cache_storage;
bool inert_visual_viewport;
bool record_whole_document;

Powered by Google App Engine
This is Rietveld 408576698