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

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

Issue 2496593002: Adding an experimental flag to block autoplay with sound in cross-origin iframes (Closed)
Patch Set: falling back to adding a boolean flag Created 4 years, 1 month 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 bool clobber_user_agent_initial_scale_quirk; 239 bool clobber_user_agent_initial_scale_quirk;
240 bool ignore_main_frame_overflow_hidden_quirk; 240 bool ignore_main_frame_overflow_hidden_quirk;
241 bool report_screen_size_in_physical_pixels_quirk; 241 bool report_screen_size_in_physical_pixels_quirk;
242 // Used by Android_WebView only to support legacy apps that inject script into 242 // Used by Android_WebView only to support legacy apps that inject script into
243 // a top-level initial empty document and expect it to persist on navigation. 243 // a top-level initial empty document and expect it to persist on navigation.
244 bool resue_global_for_unowned_main_frame; 244 bool resue_global_for_unowned_main_frame;
245 ProgressBarCompletion progress_bar_completion; 245 ProgressBarCompletion progress_bar_completion;
246 // Specifies default setting for spellcheck when the spellcheck attribute is 246 // Specifies default setting for spellcheck when the spellcheck attribute is
247 // not explicitly specified. 247 // not explicitly specified.
248 bool spellcheck_enabled_by_default; 248 bool spellcheck_enabled_by_default;
249 #else
250 bool cross_origin_media_playback_requires_user_gesture;
249 #endif 251 #endif
250 252
251 // String that describes how media element autoplay behavior should be 253 // String that describes how media element autoplay behavior should be
252 // affected by experiment. 254 // affected by experiment.
253 std::string autoplay_experiment_mode; 255 std::string autoplay_experiment_mode;
254 256
255 // Default (used if the page or UA doesn't override these) values for page 257 // Default (used if the page or UA doesn't override these) values for page
256 // scale limits. These are set directly on the WebView so there's no analogue 258 // scale limits. These are set directly on the WebView so there's no analogue
257 // in WebSettings. 259 // in WebSettings.
258 float default_minimum_page_scale_factor; 260 float default_minimum_page_scale_factor;
259 float default_maximum_page_scale_factor; 261 float default_maximum_page_scale_factor;
260 262
261 // Whether download UI should be hidden on this page. 263 // Whether download UI should be hidden on this page.
262 bool hide_download_ui; 264 bool hide_download_ui;
263 265
264 // We try to keep the default values the same as the default values in 266 // We try to keep the default values the same as the default values in
265 // chrome, except for the cases where it would require lots of extra work for 267 // chrome, except for the cases where it would require lots of extra work for
266 // the embedder to use the same default value. 268 // the embedder to use the same default value.
267 WebPreferences(); 269 WebPreferences();
268 WebPreferences(const WebPreferences& other); 270 WebPreferences(const WebPreferences& other);
269 ~WebPreferences(); 271 ~WebPreferences();
270 }; 272 };
271 273
272 } // namespace content 274 } // namespace content
273 275
274 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 276 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698