OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |