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

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

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 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 13 matching lines...) Expand all
24 24
25 COMPILE_ASSERT_MATCHING_ENUMS(EDITING_BEHAVIOR_MAC, 25 COMPILE_ASSERT_MATCHING_ENUMS(EDITING_BEHAVIOR_MAC,
26 WebSettings::EditingBehaviorMac); 26 WebSettings::EditingBehaviorMac);
27 COMPILE_ASSERT_MATCHING_ENUMS(EDITING_BEHAVIOR_WIN, 27 COMPILE_ASSERT_MATCHING_ENUMS(EDITING_BEHAVIOR_WIN,
28 WebSettings::EditingBehaviorWin); 28 WebSettings::EditingBehaviorWin);
29 COMPILE_ASSERT_MATCHING_ENUMS(EDITING_BEHAVIOR_UNIX, 29 COMPILE_ASSERT_MATCHING_ENUMS(EDITING_BEHAVIOR_UNIX,
30 WebSettings::EditingBehaviorUnix); 30 WebSettings::EditingBehaviorUnix);
31 COMPILE_ASSERT_MATCHING_ENUMS(EDITING_BEHAVIOR_ANDROID, 31 COMPILE_ASSERT_MATCHING_ENUMS(EDITING_BEHAVIOR_ANDROID,
32 WebSettings::EditingBehaviorAndroid); 32 WebSettings::EditingBehaviorAndroid);
33 33
34 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_OFF,
35 WebSettings::V8CacheOptionsOff);
36 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_PARSE,
37 WebSettings::V8CacheOptionsParse);
38 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_CODE,
39 WebSettings::V8CacheOptionsCode);
40 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_LAST,
jochen (gone - plz use gerrit) 2014/08/06 11:27:57 i think this one is not necessary
vogelheim 2014/08/06 11:34:10 I agree, but... the whole triplicate enum + static
41 WebSettings::V8CacheOptionsCode);
42
34 WebPreferences::WebPreferences() 43 WebPreferences::WebPreferences()
35 : default_font_size(16), 44 : default_font_size(16),
36 default_fixed_font_size(13), 45 default_fixed_font_size(13),
37 minimum_font_size(0), 46 minimum_font_size(0),
38 minimum_logical_font_size(6), 47 minimum_logical_font_size(6),
39 default_encoding("ISO-8859-1"), 48 default_encoding("ISO-8859-1"),
40 javascript_enabled(true), 49 javascript_enabled(true),
41 web_security_enabled(true), 50 web_security_enabled(true),
42 javascript_can_open_windows_automatically(true), 51 javascript_can_open_windows_automatically(true),
43 loads_images_automatically(true), 52 loads_images_automatically(true),
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 169 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
161 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 170 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
162 pictograph_font_family_map[kCommonScript] = 171 pictograph_font_family_map[kCommonScript] =
163 base::ASCIIToUTF16("Times New Roman"); 172 base::ASCIIToUTF16("Times New Roman");
164 } 173 }
165 174
166 WebPreferences::~WebPreferences() { 175 WebPreferences::~WebPreferences() {
167 } 176 }
168 177
169 } // namespace content 178 } // 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