OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 bool container_culling_enabled; | 128 bool container_culling_enabled; |
129 bool allow_displaying_insecure_content; | 129 bool allow_displaying_insecure_content; |
130 bool allow_running_insecure_content; | 130 bool allow_running_insecure_content; |
131 // If true, taints all <canvas> elements, regardless of origin. | 131 // If true, taints all <canvas> elements, regardless of origin. |
132 bool disable_reading_from_canvas; | 132 bool disable_reading_from_canvas; |
133 // Strict mixed content checking disables both displaying and running insecure | 133 // Strict mixed content checking disables both displaying and running insecure |
134 // mixed content, and disables embedder notifications that such content was | 134 // mixed content, and disables embedder notifications that such content was |
135 // requested (thereby preventing user override). | 135 // requested (thereby preventing user override). |
136 bool strict_mixed_content_checking; | 136 bool strict_mixed_content_checking; |
137 // Strict powerful feature restrictions block insecure usage of powerful | 137 // Strict powerful feature restrictions block insecure usage of powerful |
138 // features (like geolocation) that we haven't yet disabled for the web at | 138 // features (like device orientation) that we haven't yet disabled for the web |
139 // large. | 139 // at large. |
140 bool strict_powerful_feature_restrictions; | 140 bool strict_powerful_feature_restrictions; |
| 141 // TODO(jww): Remove when WebView no longer needs this exception. |
| 142 bool allow_geolocation_on_insecure_origins; |
141 // Disallow user opt-in for blockable mixed content. | 143 // Disallow user opt-in for blockable mixed content. |
142 bool strictly_block_blockable_mixed_content; | 144 bool strictly_block_blockable_mixed_content; |
143 bool block_mixed_plugin_content; | 145 bool block_mixed_plugin_content; |
144 bool password_echo_enabled; | 146 bool password_echo_enabled; |
145 bool should_print_backgrounds; | 147 bool should_print_backgrounds; |
146 bool should_clear_document_background; | 148 bool should_clear_document_background; |
147 bool enable_scroll_animator; | 149 bool enable_scroll_animator; |
148 bool css_variables_enabled; | 150 bool css_variables_enabled; |
149 bool touch_enabled; | 151 bool touch_enabled; |
150 // TODO(mustaq): Nuke when the new API is ready | 152 // TODO(mustaq): Nuke when the new API is ready |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // We try to keep the default values the same as the default values in | 223 // We try to keep the default values the same as the default values in |
222 // chrome, except for the cases where it would require lots of extra work for | 224 // chrome, except for the cases where it would require lots of extra work for |
223 // the embedder to use the same default value. | 225 // the embedder to use the same default value. |
224 WebPreferences(); | 226 WebPreferences(); |
225 ~WebPreferences(); | 227 ~WebPreferences(); |
226 }; | 228 }; |
227 | 229 |
228 } // namespace content | 230 } // namespace content |
229 | 231 |
230 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 232 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |