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

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

Issue 861753002: Add experimental v8 code cache options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 25 matching lines...) Expand all
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_PARSE, 39 V8_CACHE_OPTIONS_PARSE,
40 V8_CACHE_OPTIONS_CODE, 40 V8_CACHE_OPTIONS_CODE,
41 V8_CACHE_OPTIONS_CODE_COMPRESSED, 41 V8_CACHE_OPTIONS_CODE_COMPRESSED,
42 V8_CACHE_OPTIONS_NONE, 42 V8_CACHE_OPTIONS_NONE,
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_LAST = V8_CACHE_OPTIONS_HEURISTICS_MOBILE 46 V8_CACHE_OPTIONS_HEURISTICS_DEFAULT,
47 V8_CACHE_OPTIONS_HEURISTICS_DEFAULT_MOBILE,
48 V8_CACHE_OPTIONS_RECENT,
49 V8_CACHE_OPTIONS_RECENT_SMALL,
50 V8_CACHE_OPTIONS_LAST = V8_CACHE_OPTIONS_RECENT_SMALL
47 }; 51 };
48 52
49 enum V8ScriptStreamingMode { 53 enum V8ScriptStreamingMode {
50 V8_SCRIPT_STREAMING_MODE_ALL, 54 V8_SCRIPT_STREAMING_MODE_ALL,
51 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER, 55 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER,
52 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING, 56 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING,
53 V8_SCRIPT_STREAMING_MODE_LAST = 57 V8_SCRIPT_STREAMING_MODE_LAST =
54 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING 58 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING
55 }; 59 };
56 60
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // We try to keep the default values the same as the default values in 227 // We try to keep the default values the same as the default values in
224 // chrome, except for the cases where it would require lots of extra work for 228 // chrome, except for the cases where it would require lots of extra work for
225 // the embedder to use the same default value. 229 // the embedder to use the same default value.
226 WebPreferences(); 230 WebPreferences();
227 ~WebPreferences(); 231 ~WebPreferences();
228 }; 232 };
229 233
230 } // namespace content 234 } // namespace content
231 235
232 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 236 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698