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

Side by Side Diff: content/public/common/web_preferences.h

Issue 905683002: Script streaming: remove config. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 V8_CACHE_OPTIONS_PARSE_MEMORY, 43 V8_CACHE_OPTIONS_PARSE_MEMORY,
44 V8_CACHE_OPTIONS_HEURISTICS, 44 V8_CACHE_OPTIONS_HEURISTICS,
45 V8_CACHE_OPTIONS_HEURISTICS_MOBILE, 45 V8_CACHE_OPTIONS_HEURISTICS_MOBILE,
46 V8_CACHE_OPTIONS_HEURISTICS_DEFAULT, 46 V8_CACHE_OPTIONS_HEURISTICS_DEFAULT,
47 V8_CACHE_OPTIONS_HEURISTICS_DEFAULT_MOBILE, 47 V8_CACHE_OPTIONS_HEURISTICS_DEFAULT_MOBILE,
48 V8_CACHE_OPTIONS_RECENT, 48 V8_CACHE_OPTIONS_RECENT,
49 V8_CACHE_OPTIONS_RECENT_SMALL, 49 V8_CACHE_OPTIONS_RECENT_SMALL,
50 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_RECENT_SMALL 50 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_RECENT_SMALL
51 }; 51 };
52 52
53 enum V8ScriptStreamingMode {
54 V8_SCRIPT_STREAMING_MODE_ALL,
55 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER,
56 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING,
57 V8_SCRIPT_STREAMING_MODE_LAST =
58 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING
59 };
60
61 // The ISO 15924 script code for undetermined script aka Common. It's the 53 // The ISO 15924 script code for undetermined script aka Common. It's the
62 // default used on WebKit's side to get/set a font setting when no script is 54 // default used on WebKit's side to get/set a font setting when no script is
63 // specified. 55 // specified.
64 CONTENT_EXPORT extern const char kCommonScript[]; 56 CONTENT_EXPORT extern const char kCommonScript[];
65 57
66 // A struct for managing blink's settings. 58 // A struct for managing blink's settings.
67 // 59 //
68 // Adding new values to this class probably involves updating 60 // Adding new values to this class probably involves updating
69 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/ 61 // blink::WebSettings, content/common/view_messages.h, browser/tab_contents/
70 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc. 62 // render_view_host_delegate_helper.cc, and browser/profiles/profile.cc.
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 bool main_frame_resizes_are_orientation_changes; 165 bool main_frame_resizes_are_orientation_changes;
174 bool initialize_at_minimum_page_scale; 166 bool initialize_at_minimum_page_scale;
175 bool smart_insert_delete_enabled; 167 bool smart_insert_delete_enabled;
176 bool spatial_navigation_enabled; 168 bool spatial_navigation_enabled;
177 bool pinch_virtual_viewport_enabled; 169 bool pinch_virtual_viewport_enabled;
178 int pinch_overlay_scrollbar_thickness; 170 int pinch_overlay_scrollbar_thickness;
179 bool rubber_banding_on_compositor_thread; 171 bool rubber_banding_on_compositor_thread;
180 bool use_solid_color_scrollbars; 172 bool use_solid_color_scrollbars;
181 bool navigate_on_drag_drop; 173 bool navigate_on_drag_drop;
182 V8CacheOptions v8_cache_options; 174 V8CacheOptions v8_cache_options;
183 bool v8_script_streaming_enabled;
184 V8ScriptStreamingMode v8_script_streaming_mode;
185 bool slimming_paint_enabled; 175 bool slimming_paint_enabled;
186 176
187 // This flags corresponds to a Page's Settings' setCookieEnabled state. It 177 // This flags corresponds to a Page's Settings' setCookieEnabled state. It
188 // only controls whether or not the "document.cookie" field is properly 178 // only controls whether or not the "document.cookie" field is properly
189 // connected to the backing store, for instance if you wanted to be able to 179 // connected to the backing store, for instance if you wanted to be able to
190 // define custom getters and setters from within a unique security content 180 // define custom getters and setters from within a unique security content
191 // without raising a DOM security exception. 181 // without raising a DOM security exception.
192 bool cookie_enabled; 182 bool cookie_enabled;
193 183
194 // This flag indicates whether H/W accelerated video decode is enabled for 184 // This flag indicates whether H/W accelerated video decode is enabled for
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // We try to keep the default values the same as the default values in 217 // We try to keep the default values the same as the default values in
228 // chrome, except for the cases where it would require lots of extra work for 218 // chrome, except for the cases where it would require lots of extra work for
229 // the embedder to use the same default value. 219 // the embedder to use the same default value.
230 WebPreferences(); 220 WebPreferences();
231 ~WebPreferences(); 221 ~WebPreferences();
232 }; 222 };
233 223
234 } // namespace content 224 } // namespace content
235 225
236 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 226 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698