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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 databases_enabled; |
49 bool session_storage_enabled; | 49 bool session_storage_enabled; |
50 bool application_cache_enabled; | 50 bool application_cache_enabled; |
51 bool tabs_to_links; | 51 bool tabs_to_links; |
| 52 bool web_sockets_enabled; |
52 | 53 |
53 // TODO(tc): User style sheets will not work in chrome because it tries to | 54 // TODO(tc): User style sheets will not work in chrome because it tries to |
54 // load the style sheet using a request without a frame. | 55 // load the style sheet using a request without a frame. |
55 bool user_style_sheet_enabled; | 56 bool user_style_sheet_enabled; |
56 GURL user_style_sheet_location; | 57 GURL user_style_sheet_location; |
57 | 58 |
58 bool allow_universal_access_from_file_urls; | 59 bool allow_universal_access_from_file_urls; |
59 | 60 |
60 bool experimental_webgl_enabled; | 61 bool experimental_webgl_enabled; |
61 bool experimental_notifications_enabled; | 62 bool experimental_notifications_enabled; |
(...skipping 26 matching lines...) Expand all Loading... |
88 java_enabled(true), | 89 java_enabled(true), |
89 allow_scripts_to_close_windows(false), | 90 allow_scripts_to_close_windows(false), |
90 uses_page_cache(false), | 91 uses_page_cache(false), |
91 remote_fonts_enabled(false), | 92 remote_fonts_enabled(false), |
92 xss_auditor_enabled(false), | 93 xss_auditor_enabled(false), |
93 local_storage_enabled(false), | 94 local_storage_enabled(false), |
94 databases_enabled(false), | 95 databases_enabled(false), |
95 session_storage_enabled(false), | 96 session_storage_enabled(false), |
96 application_cache_enabled(false), | 97 application_cache_enabled(false), |
97 tabs_to_links(true), | 98 tabs_to_links(true), |
| 99 web_sockets_enabled(false), |
98 user_style_sheet_enabled(false), | 100 user_style_sheet_enabled(false), |
99 allow_universal_access_from_file_urls(false), | 101 allow_universal_access_from_file_urls(false), |
100 experimental_webgl_enabled(false), | 102 experimental_webgl_enabled(false), |
101 experimental_notifications_enabled(false) { | 103 experimental_notifications_enabled(false) { |
102 } | 104 } |
103 | 105 |
104 void Apply(WebView* web_view) const; | 106 void Apply(WebView* web_view) const; |
105 }; | 107 }; |
106 | 108 |
107 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 109 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
OLD | NEW |