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

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

Issue 2628313002: [Media] Plumb a feature parameter for the background video keyframe distance. (Closed)
Patch Set: Changed the param to milliseconds Created 3 years, 11 months 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>
11 11
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/time/time.h"
13 #include "build/build_config.h" 14 #include "build/build_config.h"
14 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
15 #include "ui/base/touch/touch_device.h" 16 #include "ui/base/touch/touch_device.h"
16 #include "url/gurl.h" 17 #include "url/gurl.h"
17 18
18 namespace blink { 19 namespace blink {
19 class WebView; 20 class WebView;
20 } 21 }
21 22
22 namespace content { 23 namespace content {
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // in WebSettings. 258 // in WebSettings.
258 float default_minimum_page_scale_factor; 259 float default_minimum_page_scale_factor;
259 float default_maximum_page_scale_factor; 260 float default_maximum_page_scale_factor;
260 261
261 // Whether download UI should be hidden on this page. 262 // Whether download UI should be hidden on this page.
262 bool hide_download_ui; 263 bool hide_download_ui;
263 264
264 // If enabled, disabled video track when the video is in the background. 265 // If enabled, disabled video track when the video is in the background.
265 bool background_video_track_optimization_enabled; 266 bool background_video_track_optimization_enabled;
266 267
268 // If background video track optimization is enabled, don't disable video
269 // track for videos with the average keyframe distance greater than this
270 // value.
271 // TODO(avayvod, asvitkine): Query the value directly when it is available in
272 // the renderer process. See https://crbug.com/681160.
273 base::TimeDelta max_keyframe_distance_to_disable_background_video;
274
267 // Whether it is a presentation receiver. 275 // Whether it is a presentation receiver.
268 bool presentation_receiver; 276 bool presentation_receiver;
269 277
270 // We try to keep the default values the same as the default values in 278 // We try to keep the default values the same as the default values in
271 // chrome, except for the cases where it would require lots of extra work for 279 // chrome, except for the cases where it would require lots of extra work for
272 // the embedder to use the same default value. 280 // the embedder to use the same default value.
273 WebPreferences(); 281 WebPreferences();
274 WebPreferences(const WebPreferences& other); 282 WebPreferences(const WebPreferences& other);
275 ~WebPreferences(); 283 ~WebPreferences();
276 }; 284 };
277 285
278 } // namespace content 286 } // namespace content
279 287
280 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 288 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698