| 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 30 matching lines...) Expand all Loading... |
| 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 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 | 52 |
| 52 // TODO(tc): User style sheets will not work in chrome because it tries to | 53 // TODO(tc): User style sheets will not work in chrome because it tries to |
| 53 // load the style sheet using a request without a frame. | 54 // load the style sheet using a request without a frame. |
| 54 bool user_style_sheet_enabled; | 55 bool user_style_sheet_enabled; |
| 55 GURL user_style_sheet_location; | 56 GURL user_style_sheet_location; |
| 56 | 57 |
| 57 bool allow_universal_access_from_file_urls; | 58 bool allow_universal_access_from_file_urls; |
| 58 | 59 |
| 59 // We try to keep the default values the same as the default values in | 60 // We try to keep the default values the same as the default values in |
| 60 // chrome, except for the cases where it would require lots of extra work for | 61 // chrome, except for the cases where it would require lots of extra work for |
| (...skipping 23 matching lines...) Expand all Loading... |
| 84 text_areas_are_resizable(true), | 85 text_areas_are_resizable(true), |
| 85 java_enabled(true), | 86 java_enabled(true), |
| 86 allow_scripts_to_close_windows(false), | 87 allow_scripts_to_close_windows(false), |
| 87 uses_page_cache(false), | 88 uses_page_cache(false), |
| 88 remote_fonts_enabled(false), | 89 remote_fonts_enabled(false), |
| 89 xss_auditor_enabled(false), | 90 xss_auditor_enabled(false), |
| 90 local_storage_enabled(false), | 91 local_storage_enabled(false), |
| 91 databases_enabled(false), | 92 databases_enabled(false), |
| 92 session_storage_enabled(false), | 93 session_storage_enabled(false), |
| 93 application_cache_enabled(false), | 94 application_cache_enabled(false), |
| 95 tabs_to_links(true), |
| 94 user_style_sheet_enabled(false), | 96 user_style_sheet_enabled(false), |
| 95 allow_universal_access_from_file_urls(false) { | 97 allow_universal_access_from_file_urls(false) { |
| 96 } | 98 } |
| 97 | 99 |
| 98 void Apply(WebView* web_view) const; | 100 void Apply(WebView* web_view) const; |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 103 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |