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 // WebKit::WebSettings, common/render_messages.h, and | 8 // WebKit::WebSettings, common/render_messages.h, and |
9 // browser/profile.cc. | 9 // browser/profile.cc. |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 std::wstring inspector_settings; | 38 std::wstring inspector_settings; |
39 bool shrinks_standalone_images_to_fit; | 39 bool shrinks_standalone_images_to_fit; |
40 bool uses_universal_detector; | 40 bool uses_universal_detector; |
41 bool text_areas_are_resizable; | 41 bool text_areas_are_resizable; |
42 bool java_enabled; | 42 bool java_enabled; |
43 bool allow_scripts_to_close_windows; | 43 bool allow_scripts_to_close_windows; |
44 bool uses_page_cache; | 44 bool uses_page_cache; |
45 bool remote_fonts_enabled; | 45 bool remote_fonts_enabled; |
46 bool xss_auditor_enabled; | 46 bool xss_auditor_enabled; |
47 bool local_storage_enabled; | 47 bool local_storage_enabled; |
| 48 bool databases_enabled; |
48 bool session_storage_enabled; | 49 bool session_storage_enabled; |
49 bool application_cache_enabled; | 50 bool application_cache_enabled; |
50 | 51 |
51 // TODO(tc): User style sheets will not work in chrome because it tries to | 52 // TODO(tc): User style sheets will not work in chrome because it tries to |
52 // load the style sheet using a request without a frame. | 53 // load the style sheet using a request without a frame. |
53 bool user_style_sheet_enabled; | 54 bool user_style_sheet_enabled; |
54 GURL user_style_sheet_location; | 55 GURL user_style_sheet_location; |
55 | 56 |
56 // We try to keep the default values the same as the default values in | 57 // We try to keep the default values the same as the default values in |
57 // chrome, except for the cases where it would require lots of extra work for | 58 // chrome, except for the cases where it would require lots of extra work for |
(...skipping 20 matching lines...) Expand all Loading... |
78 inspector_settings(L""), | 79 inspector_settings(L""), |
79 shrinks_standalone_images_to_fit(true), | 80 shrinks_standalone_images_to_fit(true), |
80 uses_universal_detector(false), // Disabled: page cycler regression | 81 uses_universal_detector(false), // Disabled: page cycler regression |
81 text_areas_are_resizable(true), | 82 text_areas_are_resizable(true), |
82 java_enabled(true), | 83 java_enabled(true), |
83 allow_scripts_to_close_windows(false), | 84 allow_scripts_to_close_windows(false), |
84 uses_page_cache(false), | 85 uses_page_cache(false), |
85 remote_fonts_enabled(false), | 86 remote_fonts_enabled(false), |
86 xss_auditor_enabled(false), | 87 xss_auditor_enabled(false), |
87 local_storage_enabled(false), | 88 local_storage_enabled(false), |
| 89 databases_enabled(false), |
88 session_storage_enabled(false), | 90 session_storage_enabled(false), |
89 application_cache_enabled(false), | 91 application_cache_enabled(false), |
90 user_style_sheet_enabled(false) { | 92 user_style_sheet_enabled(false) { |
91 } | 93 } |
92 | 94 |
93 void Apply(WebView* web_view) const; | 95 void Apply(WebView* web_view) const; |
94 }; | 96 }; |
95 | 97 |
96 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 98 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
OLD | NEW |