Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: content/public/common/web_preferences.h

Issue 1530403002: Removal of geolocation APIs on insecure origins (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix unit test Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 bool container_culling_enabled; 124 bool container_culling_enabled;
125 bool allow_displaying_insecure_content; 125 bool allow_displaying_insecure_content;
126 bool allow_running_insecure_content; 126 bool allow_running_insecure_content;
127 // If true, taints all <canvas> elements, regardless of origin. 127 // If true, taints all <canvas> elements, regardless of origin.
128 bool disable_reading_from_canvas; 128 bool disable_reading_from_canvas;
129 // Strict mixed content checking disables both displaying and running insecure 129 // Strict mixed content checking disables both displaying and running insecure
130 // mixed content, and disables embedder notifications that such content was 130 // mixed content, and disables embedder notifications that such content was
131 // requested (thereby preventing user override). 131 // requested (thereby preventing user override).
132 bool strict_mixed_content_checking; 132 bool strict_mixed_content_checking;
133 // Strict powerful feature restrictions block insecure usage of powerful 133 // Strict powerful feature restrictions block insecure usage of powerful
134 // features (like geolocation) that we haven't yet disabled for the web at 134 // features (like device orientation) that we haven't yet disabled for the web
135 // large. 135 // at large.
136 bool strict_powerful_feature_restrictions; 136 bool strict_powerful_feature_restrictions;
137 // TODO(jww): Remove when WebView no longer needs this exception.
138 bool allow_geolocation_on_insecure_origins;
137 // Disallow user opt-in for blockable mixed content. 139 // Disallow user opt-in for blockable mixed content.
138 bool strictly_block_blockable_mixed_content; 140 bool strictly_block_blockable_mixed_content;
139 bool block_mixed_plugin_content; 141 bool block_mixed_plugin_content;
140 bool password_echo_enabled; 142 bool password_echo_enabled;
141 bool should_print_backgrounds; 143 bool should_print_backgrounds;
142 bool should_clear_document_background; 144 bool should_clear_document_background;
143 bool enable_scroll_animator; 145 bool enable_scroll_animator;
144 bool css_variables_enabled; 146 bool css_variables_enabled;
145 bool touch_enabled; 147 bool touch_enabled;
146 // TODO(mustaq): Nuke when the new API is ready 148 // TODO(mustaq): Nuke when the new API is ready
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // We try to keep the default values the same as the default values in 220 // We try to keep the default values the same as the default values in
219 // chrome, except for the cases where it would require lots of extra work for 221 // chrome, except for the cases where it would require lots of extra work for
220 // the embedder to use the same default value. 222 // the embedder to use the same default value.
221 WebPreferences(); 223 WebPreferences();
222 ~WebPreferences(); 224 ~WebPreferences();
223 }; 225 };
224 226
225 } // namespace content 227 } // namespace content
226 228
227 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 229 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698