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

Unified Diff: third_party/WebKit/Source/core/html/media/AutoplayPolicy.h

Issue 2856783002: Autoplay time metric (Closed)
Patch Set: comments addressed Created 3 years, 7 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: third_party/WebKit/Source/core/html/media/AutoplayPolicy.h
diff --git a/third_party/WebKit/Source/core/html/media/AutoplayPolicy.h b/third_party/WebKit/Source/core/html/media/AutoplayPolicy.h
index a47795b39273d2cfb872adef39b9c330f8a8e7ca..2c25b2847884c99d0ad634ac7434b0c4029c98ff 100644
--- a/third_party/WebKit/Source/core/html/media/AutoplayPolicy.h
+++ b/third_party/WebKit/Source/core/html/media/AutoplayPolicy.h
@@ -9,6 +9,7 @@
#include "core/CoreExport.h"
#include "core/dom/ExceptionCode.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebMediaPlayerClient.h"
namespace blink {
@@ -66,6 +67,9 @@ class AutoplayPolicy final : public GarbageCollected<AutoplayPolicy> {
// gesture is currently being processed.
bool IsGestureNeededForPlayback() const;
+ // Called when source is initialized and loading starts.
+ void OnLoadStarted(WebMediaPlayer::LoadType);
+
DECLARE_VIRTUAL_TRACE();
private:

Powered by Google App Engine
This is Rietveld 408576698