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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 2160963002: Add watch time metrics for HTML5 media playback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments, couple more tests. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index edee39b72ecd923944efcf8947280af47f12a26e..e1bc4ac41712092815b30cd4ff8fb7f07e24c2ba 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -72,6 +72,7 @@ class GpuVideoAcceleratorFactories;
class MediaLog;
class UrlIndex;
class VideoFrameCompositor;
+class WatchTimeReporter;
class WebAudioSourceProviderImpl;
class WebMediaPlayerDelegate;
class WebTextTrackImpl;
@@ -535,6 +536,10 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
// state as part of the call to OnHidden().
base::OneShotTimer background_pause_timer_;
+ // Monitors the watch time of the played content.
+ bool is_encrypted_;
sandersd (OOO until July 31) 2016/08/04 23:06:26 Swap these two declarations.
DaleCurtis 2016/08/08 23:16:42 Done.
+ std::unique_ptr<WatchTimeReporter> watch_time_reporter_;
+
DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698