Index: content/public/common/web_preferences.h |
diff --git a/content/public/common/web_preferences.h b/content/public/common/web_preferences.h |
index 4835144f9ff454ad268b1b4c5ec085257bcdf805..9bcda9e87dee064796afa827bf34f6ec94e92085 100644 |
--- a/content/public/common/web_preferences.h |
+++ b/content/public/common/web_preferences.h |
@@ -10,6 +10,7 @@ |
#include <vector> |
#include "base/strings/string16.h" |
+#include "base/time/time.h" |
#include "build/build_config.h" |
#include "content/common/content_export.h" |
#include "ui/base/touch/touch_device.h" |
@@ -264,6 +265,13 @@ struct CONTENT_EXPORT WebPreferences { |
// If enabled, disabled video track when the video is in the background. |
bool background_video_track_optimization_enabled; |
+ // If background video track optimization is enabled, don't disable video |
+ // track for videos with the average keyframe distance greater than this |
+ // value. |
+ // TODO(avayvod, asvitkine): Query the value directly when it is available in |
+ // the renderer process. See https://crbug.com/681160. |
+ base::TimeDelta max_keyframe_distance_to_disable_background_video; |
+ |
// Whether it is a presentation receiver. |
bool presentation_receiver; |