| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 51 |
| 52 // 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 |
| 53 // load the style sheet using a request without a frame. | 53 // load the style sheet using a request without a frame. |
| 54 bool user_style_sheet_enabled; | 54 bool user_style_sheet_enabled; |
| 55 GURL user_style_sheet_location; | 55 GURL user_style_sheet_location; |
| 56 | 56 |
| 57 bool allow_universal_access_from_file_urls; |
| 58 |
| 57 // We try to keep the default values the same as the default values in | 59 // We try to keep the default values the same as the default values in |
| 58 // chrome, except for the cases where it would require lots of extra work for | 60 // chrome, except for the cases where it would require lots of extra work for |
| 59 // the embedder to use the same default value. | 61 // the embedder to use the same default value. |
| 60 WebPreferences() | 62 WebPreferences() |
| 61 : standard_font_family(L"Times New Roman"), | 63 : standard_font_family(L"Times New Roman"), |
| 62 fixed_font_family(L"Courier New"), | 64 fixed_font_family(L"Courier New"), |
| 63 serif_font_family(L"Times New Roman"), | 65 serif_font_family(L"Times New Roman"), |
| 64 sans_serif_font_family(L"Arial"), | 66 sans_serif_font_family(L"Arial"), |
| 65 cursive_font_family(L"Script"), | 67 cursive_font_family(L"Script"), |
| 66 fantasy_font_family(), // Not sure what to use on Windows. | 68 fantasy_font_family(), // Not sure what to use on Windows. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 82 text_areas_are_resizable(true), | 84 text_areas_are_resizable(true), |
| 83 java_enabled(true), | 85 java_enabled(true), |
| 84 allow_scripts_to_close_windows(false), | 86 allow_scripts_to_close_windows(false), |
| 85 uses_page_cache(false), | 87 uses_page_cache(false), |
| 86 remote_fonts_enabled(false), | 88 remote_fonts_enabled(false), |
| 87 xss_auditor_enabled(false), | 89 xss_auditor_enabled(false), |
| 88 local_storage_enabled(false), | 90 local_storage_enabled(false), |
| 89 databases_enabled(false), | 91 databases_enabled(false), |
| 90 session_storage_enabled(false), | 92 session_storage_enabled(false), |
| 91 application_cache_enabled(false), | 93 application_cache_enabled(false), |
| 92 user_style_sheet_enabled(false) { | 94 user_style_sheet_enabled(false), |
| 95 allow_universal_access_from_file_urls(false) { |
| 93 } | 96 } |
| 94 | 97 |
| 95 void Apply(WebView* web_view) const; | 98 void Apply(WebView* web_view) const; |
| 96 }; | 99 }; |
| 97 | 100 |
| 98 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ | 101 #endif // WEBKIT_GLUE_WEBPREFERENCES_H__ |
| OLD | NEW |