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

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

Issue 2856783002: Autoplay time metric (Closed)
Patch Set: histogram description update 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 8e20d46c478082673517bb99a75eb2cfae47d249..b79ddd2fabdd71fa8ca8eb394d9228a7d23fc83e 100644
--- a/third_party/WebKit/Source/core/html/media/AutoplayPolicy.h
+++ b/third_party/WebKit/Source/core/html/media/AutoplayPolicy.h
@@ -8,6 +8,7 @@
#include "bindings/core/v8/Nullable.h"
#include "core/dom/ExceptionCode.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebMediaPlayerClient.h"
namespace blink {
@@ -56,6 +57,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