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

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

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 unified diff | Download patch
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.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 #include "content/public/common/web_preferences.h" 5 #include "content/public/common/web_preferences.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "third_party/WebKit/public/web/WebSettings.h" 10 #include "third_party/WebKit/public/web/WebSettings.h"
(...skipping 22 matching lines...) Expand all
33 33
34 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_OFF, 34 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_OFF,
35 WebSettings::V8CacheOptionsOff); 35 WebSettings::V8CacheOptionsOff);
36 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_PARSE, 36 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_PARSE,
37 WebSettings::V8CacheOptionsParse); 37 WebSettings::V8CacheOptionsParse);
38 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_CODE, 38 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_CODE,
39 WebSettings::V8CacheOptionsCode); 39 WebSettings::V8CacheOptionsCode);
40 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_LAST, 40 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_LAST,
41 WebSettings::V8CacheOptionsCode); 41 WebSettings::V8CacheOptionsCode);
42 42
43 COMPILE_ASSERT_MATCHING_ENUMS(V8_SCRIPT_STREAMING_MODE_ALL,
44 WebSettings::V8ScriptStreamingModeAll);
45 COMPILE_ASSERT_MATCHING_ENUMS(
46 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER,
47 WebSettings::V8ScriptStreamingModeOnlyAsyncAndDefer);
48 COMPILE_ASSERT_MATCHING_ENUMS(
49 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING,
50 WebSettings::V8ScriptStreamingModeAllPlusBlockParsingBlocking);
51 COMPILE_ASSERT_MATCHING_ENUMS(
52 V8_SCRIPT_STREAMING_MODE_LAST,
53 WebSettings::V8ScriptStreamingModeAllPlusBlockParsingBlocking);
54
43 WebPreferences::WebPreferences() 55 WebPreferences::WebPreferences()
44 : default_font_size(16), 56 : default_font_size(16),
45 default_fixed_font_size(13), 57 default_fixed_font_size(13),
46 minimum_font_size(0), 58 minimum_font_size(0),
47 minimum_logical_font_size(6), 59 minimum_logical_font_size(6),
48 default_encoding("ISO-8859-1"), 60 default_encoding("ISO-8859-1"),
49 javascript_enabled(true), 61 javascript_enabled(true),
50 web_security_enabled(true), 62 web_security_enabled(true),
51 javascript_can_open_windows_automatically(true), 63 javascript_can_open_windows_automatically(true),
52 loads_images_automatically(true), 64 loads_images_automatically(true),
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 #else 144 #else
133 smart_insert_delete_enabled(false), 145 smart_insert_delete_enabled(false),
134 #endif 146 #endif
135 spatial_navigation_enabled(false), 147 spatial_navigation_enabled(false),
136 pinch_virtual_viewport_enabled(false), 148 pinch_virtual_viewport_enabled(false),
137 pinch_overlay_scrollbar_thickness(0), 149 pinch_overlay_scrollbar_thickness(0),
138 use_solid_color_scrollbars(false), 150 use_solid_color_scrollbars(false),
139 navigate_on_drag_drop(true), 151 navigate_on_drag_drop(true),
140 v8_cache_options(V8_CACHE_OPTIONS_OFF), 152 v8_cache_options(V8_CACHE_OPTIONS_OFF),
141 v8_script_streaming_enabled(false), 153 v8_script_streaming_enabled(false),
154 v8_script_streaming_mode(V8_SCRIPT_STREAMING_MODE_ALL),
142 slimming_paint_enabled(false), 155 slimming_paint_enabled(false),
143 cookie_enabled(true), 156 cookie_enabled(true),
144 pepper_accelerated_video_decode_enabled(false) 157 pepper_accelerated_video_decode_enabled(false)
145 #if defined(OS_ANDROID) 158 #if defined(OS_ANDROID)
146 , 159 ,
147 text_autosizing_enabled(true), 160 text_autosizing_enabled(true),
148 font_scale_factor(1.0f), 161 font_scale_factor(1.0f),
149 device_scale_adjustment(1.0f), 162 device_scale_adjustment(1.0f),
150 force_enable_zoom(false), 163 force_enable_zoom(false),
151 fullscreen_supported(true), 164 fullscreen_supported(true),
(...skipping 21 matching lines...) Expand all
173 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 186 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
174 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 187 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
175 pictograph_font_family_map[kCommonScript] = 188 pictograph_font_family_map[kCommonScript] =
176 base::ASCIIToUTF16("Times New Roman"); 189 base::ASCIIToUTF16("Times New Roman");
177 } 190 }
178 191
179 WebPreferences::~WebPreferences() { 192 WebPreferences::~WebPreferences() {
180 } 193 }
181 194
182 } // namespace content 195 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698