| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 bool java_enabled; | 45 bool java_enabled; |
| 46 bool allow_scripts_to_close_windows; | 46 bool allow_scripts_to_close_windows; |
| 47 bool uses_page_cache; | 47 bool uses_page_cache; |
| 48 bool remote_fonts_enabled; | 48 bool remote_fonts_enabled; |
| 49 bool xss_auditor_enabled; | 49 bool xss_auditor_enabled; |
| 50 bool local_storage_enabled; | 50 bool local_storage_enabled; |
| 51 bool databases_enabled; | 51 bool databases_enabled; |
| 52 bool application_cache_enabled; | 52 bool application_cache_enabled; |
| 53 bool tabs_to_links; | 53 bool tabs_to_links; |
| 54 | 54 |
| 55 // TODO(tc): User style sheets will not work in chrome because it tries to | |
| 56 // load the style sheet using a request without a frame. | |
| 57 bool user_style_sheet_enabled; | 55 bool user_style_sheet_enabled; |
| 58 GURL user_style_sheet_location; | 56 GURL user_style_sheet_location; |
| 59 bool allow_universal_access_from_file_urls; | 57 bool allow_universal_access_from_file_urls; |
| 60 bool allow_file_access_from_file_urls; | 58 bool allow_file_access_from_file_urls; |
| 61 bool experimental_webgl_enabled; | 59 bool experimental_webgl_enabled; |
| 62 bool show_composited_layer_borders; | 60 bool show_composited_layer_borders; |
| 63 | 61 |
| 64 // We try to keep the default values the same as the default values in | 62 // We try to keep the default values the same as the default values in |
| 65 // chrome, except for the cases where it would require lots of extra work for | 63 // chrome, except for the cases where it would require lots of extra work for |
| 66 // the embedder to use the same default value. | 64 // the embedder to use the same default value. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 allow_universal_access_from_file_urls(false), | 98 allow_universal_access_from_file_urls(false), |
| 101 allow_file_access_from_file_urls(false), | 99 allow_file_access_from_file_urls(false), |
| 102 experimental_webgl_enabled(false), | 100 experimental_webgl_enabled(false), |
| 103 show_composited_layer_borders(false) { | 101 show_composited_layer_borders(false) { |
| 104 } | 102 } |
| 105 | 103 |
| 106 void Apply(WebKit::WebView* web_view) const; | 104 void Apply(WebKit::WebView* web_view) const; |
| 107 }; | 105 }; |
| 108 | 106 |
| 109 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 107 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |