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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // If true, taints all <canvas> elements, regardless of origin. | 132 // If true, taints all <canvas> elements, regardless of origin. |
133 bool disable_reading_from_canvas; | 133 bool disable_reading_from_canvas; |
134 // Strict mixed content checking disables both displaying and running insecure | 134 // Strict mixed content checking disables both displaying and running insecure |
135 // mixed content, and disables embedder notifications that such content was | 135 // mixed content, and disables embedder notifications that such content was |
136 // requested (thereby preventing user override). | 136 // requested (thereby preventing user override). |
137 bool strict_mixed_content_checking; | 137 bool strict_mixed_content_checking; |
138 // Strict powerful feature restrictions block insecure usage of powerful | 138 // Strict powerful feature restrictions block insecure usage of powerful |
139 // features (like geolocation) that we haven't yet disabled for the web at | 139 // features (like geolocation) that we haven't yet disabled for the web at |
140 // large. | 140 // large. |
141 bool strict_powerful_feature_restrictions; | 141 bool strict_powerful_feature_restrictions; |
| 142 // Disallow user opt-in for blockable mixed content. |
| 143 bool strictly_block_blockable_mixed_content; |
142 bool password_echo_enabled; | 144 bool password_echo_enabled; |
143 bool should_print_backgrounds; | 145 bool should_print_backgrounds; |
144 bool should_clear_document_background; | 146 bool should_clear_document_background; |
145 bool enable_scroll_animator; | 147 bool enable_scroll_animator; |
146 bool css_variables_enabled; | 148 bool css_variables_enabled; |
147 bool touch_enabled; | 149 bool touch_enabled; |
148 // TODO(mustaq): Nuke when the new API is ready | 150 // TODO(mustaq): Nuke when the new API is ready |
149 bool device_supports_touch; | 151 bool device_supports_touch; |
150 // TODO(mustaq): Nuke when the new API is ready | 152 // TODO(mustaq): Nuke when the new API is ready |
151 bool device_supports_mouse; | 153 bool device_supports_mouse; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // We try to keep the default values the same as the default values in | 221 // We try to keep the default values the same as the default values in |
220 // chrome, except for the cases where it would require lots of extra work for | 222 // chrome, except for the cases where it would require lots of extra work for |
221 // the embedder to use the same default value. | 223 // the embedder to use the same default value. |
222 WebPreferences(); | 224 WebPreferences(); |
223 ~WebPreferences(); | 225 ~WebPreferences(); |
224 }; | 226 }; |
225 | 227 |
226 } // namespace content | 228 } // namespace content |
227 | 229 |
228 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 230 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |