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

Side by Side 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, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 35
36 // Cache options for V8. See V8CacheOptions.h for information on the options. 36 // Cache options for V8. See V8CacheOptions.h for information on the options.
37 enum V8CacheOptions { 37 enum V8CacheOptions {
38 V8_CACHE_OPTIONS_DEFAULT, 38 V8_CACHE_OPTIONS_DEFAULT,
39 V8_CACHE_OPTIONS_NONE, 39 V8_CACHE_OPTIONS_NONE,
40 V8_CACHE_OPTIONS_PARSE, 40 V8_CACHE_OPTIONS_PARSE,
41 V8_CACHE_OPTIONS_CODE, 41 V8_CACHE_OPTIONS_CODE,
42 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_CODE 42 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_CODE
43 }; 43 };
44 44
45 // Strategies to cache V8 data in CacheStorage. (off, normal, or aggressive)
46 enum V8CacheStrategiesForCacheStorage {
47 V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_DEFAULT,
48 V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_NONE,
49 V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_NORMAL,
50 V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_AGGRESSIVE,
51 V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_LAST =
52 V8_CACHE_STRATEGIES_FOR_CACHE_STORAGE_AGGRESSIVE
53 };
54
45 // ImageAnimationPolicy is used for controlling image animation 55 // ImageAnimationPolicy is used for controlling image animation
46 // when image frame is rendered for animation. 56 // when image frame is rendered for animation.
47 // See third_party/WebKit/Source/platform/graphics/ImageAnimationPolicy.h 57 // See third_party/WebKit/Source/platform/graphics/ImageAnimationPolicy.h
48 // for information on the options. 58 // for information on the options.
49 enum ImageAnimationPolicy { 59 enum ImageAnimationPolicy {
50 IMAGE_ANIMATION_POLICY_ALLOWED, 60 IMAGE_ANIMATION_POLICY_ALLOWED,
51 IMAGE_ANIMATION_POLICY_ANIMATION_ONCE, 61 IMAGE_ANIMATION_POLICY_ANIMATION_ONCE,
52 IMAGE_ANIMATION_POLICY_NO_ANIMATION 62 IMAGE_ANIMATION_POLICY_NO_ANIMATION
53 }; 63 };
54 64
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 bool viewport_meta_enabled; 180 bool viewport_meta_enabled;
171 ViewportStyle viewport_style; 181 ViewportStyle viewport_style;
172 bool main_frame_resizes_are_orientation_changes; 182 bool main_frame_resizes_are_orientation_changes;
173 bool initialize_at_minimum_page_scale; 183 bool initialize_at_minimum_page_scale;
174 bool smart_insert_delete_enabled; 184 bool smart_insert_delete_enabled;
175 bool spatial_navigation_enabled; 185 bool spatial_navigation_enabled;
176 int pinch_overlay_scrollbar_thickness; 186 int pinch_overlay_scrollbar_thickness;
177 bool use_solid_color_scrollbars; 187 bool use_solid_color_scrollbars;
178 bool navigate_on_drag_drop; 188 bool navigate_on_drag_drop;
179 V8CacheOptions v8_cache_options; 189 V8CacheOptions v8_cache_options;
190 V8CacheStrategiesForCacheStorage v8_cache_strategies_for_cache_storage;
180 bool inert_visual_viewport; 191 bool inert_visual_viewport;
181 bool record_whole_document; 192 bool record_whole_document;
182 193
183 // This flags corresponds to a Page's Settings' setCookieEnabled state. It 194 // This flags corresponds to a Page's Settings' setCookieEnabled state. It
184 // only controls whether or not the "document.cookie" field is properly 195 // only controls whether or not the "document.cookie" field is properly
185 // connected to the backing store, for instance if you wanted to be able to 196 // connected to the backing store, for instance if you wanted to be able to
186 // define custom getters and setters from within a unique security content 197 // define custom getters and setters from within a unique security content
187 // without raising a DOM security exception. 198 // without raising a DOM security exception.
188 bool cookie_enabled; 199 bool cookie_enabled;
189 200
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 // chrome, except for the cases where it would require lots of extra work for 248 // chrome, except for the cases where it would require lots of extra work for
238 // the embedder to use the same default value. 249 // the embedder to use the same default value.
239 WebPreferences(); 250 WebPreferences();
240 WebPreferences(const WebPreferences& other); 251 WebPreferences(const WebPreferences& other);
241 ~WebPreferences(); 252 ~WebPreferences();
242 }; 253 };
243 254
244 } // namespace content 255 } // namespace content
245 256
246 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 257 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698