OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // A struct for managing webkit's settings. | 5 // A struct for managing webkit's settings. |
6 // | 6 // |
7 // Adding new values to this class probably involves updating | 7 // Adding new values to this class probably involves updating |
8 // WebViewImpl::SetPreferences, common/render_messages.h, and | 8 // WebViewImpl::SetPreferences, common/render_messages.h, and |
9 // browser/profile.cc. | 9 // browser/profile.cc. |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 bool developer_extras_enabled; | 35 bool developer_extras_enabled; |
36 std::wstring inspector_settings; | 36 std::wstring inspector_settings; |
37 bool shrinks_standalone_images_to_fit; | 37 bool shrinks_standalone_images_to_fit; |
38 bool uses_universal_detector; | 38 bool uses_universal_detector; |
39 bool text_areas_are_resizable; | 39 bool text_areas_are_resizable; |
40 bool java_enabled; | 40 bool java_enabled; |
41 bool allow_scripts_to_close_windows; | 41 bool allow_scripts_to_close_windows; |
42 bool uses_page_cache; | 42 bool uses_page_cache; |
43 bool remote_fonts_enabled; | 43 bool remote_fonts_enabled; |
44 bool xss_auditor_enabled; | 44 bool xss_auditor_enabled; |
| 45 bool local_storage_enabled; |
| 46 bool session_storage_enabled; |
45 | 47 |
46 // TODO(tc): User style sheets will not work in chrome because it tries to | 48 // TODO(tc): User style sheets will not work in chrome because it tries to |
47 // load the style sheet using a request without a frame. | 49 // load the style sheet using a request without a frame. |
48 bool user_style_sheet_enabled; | 50 bool user_style_sheet_enabled; |
49 GURL user_style_sheet_location; | 51 GURL user_style_sheet_location; |
50 | 52 |
51 // We try to keep the default values the same as the default values in | 53 // We try to keep the default values the same as the default values in |
52 // chrome, except for the cases where it would require lots of extra work for | 54 // chrome, except for the cases where it would require lots of extra work for |
53 // the embedder to use the same default value. | 55 // the embedder to use the same default value. |
54 WebPreferences() | 56 WebPreferences() |
(...skipping 17 matching lines...) Expand all Loading... |
72 developer_extras_enabled(false), // Requires extra work by embedder | 74 developer_extras_enabled(false), // Requires extra work by embedder |
73 inspector_settings(L""), | 75 inspector_settings(L""), |
74 shrinks_standalone_images_to_fit(true), | 76 shrinks_standalone_images_to_fit(true), |
75 uses_universal_detector(false), // Disabled: page cycler regression | 77 uses_universal_detector(false), // Disabled: page cycler regression |
76 text_areas_are_resizable(true), | 78 text_areas_are_resizable(true), |
77 java_enabled(true), | 79 java_enabled(true), |
78 allow_scripts_to_close_windows(false), | 80 allow_scripts_to_close_windows(false), |
79 uses_page_cache(false), | 81 uses_page_cache(false), |
80 remote_fonts_enabled(false), | 82 remote_fonts_enabled(false), |
81 xss_auditor_enabled(false), | 83 xss_auditor_enabled(false), |
| 84 local_storage_enabled(false), |
| 85 session_storage_enabled(false), |
82 user_style_sheet_enabled(false) { | 86 user_style_sheet_enabled(false) { |
83 } | 87 } |
84 }; | 88 }; |
85 | 89 |
86 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 90 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
OLD | NEW |