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

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

Issue 2856783002: Autoplay time metric (Closed)
Patch Set: added OnLoadStarted() Created 3 years, 8 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..900a398f0e59f25d22b26bcd286fde066df36db6 100644
--- a/third_party/WebKit/Source/core/html/media/AutoplayPolicy.h
+++ b/third_party/WebKit/Source/core/html/media/AutoplayPolicy.h
@@ -56,6 +56,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();
+
DECLARE_VIRTUAL_TRACE();
private:

Powered by Google App Engine
This is Rietveld 408576698