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

Side by Side Diff: third_party/WebKit/Source/core/html/AutoplayUmaHelper.h

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef AutoplayUmaHelper_h 5 #ifndef AutoplayUmaHelper_h
6 #define AutoplayUmaHelper_h 6 #define AutoplayUmaHelper_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/ContextLifecycleObserver.h" 9 #include "core/dom/ContextLifecycleObserver.h"
10 #include "core/events/EventListener.h" 10 #include "core/events/EventListener.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 public ContextLifecycleObserver { 57 public ContextLifecycleObserver {
58 USING_GARBAGE_COLLECTED_MIXIN(AutoplayUmaHelper); 58 USING_GARBAGE_COLLECTED_MIXIN(AutoplayUmaHelper);
59 59
60 public: 60 public:
61 static AutoplayUmaHelper* create(HTMLMediaElement*); 61 static AutoplayUmaHelper* create(HTMLMediaElement*);
62 62
63 ~AutoplayUmaHelper(); 63 ~AutoplayUmaHelper();
64 64
65 bool operator==(const EventListener&) const override; 65 bool operator==(const EventListener&) const override;
66 66
67 void contextDestroyed() override; 67 void contextDestroyed(ExecutionContext*) override;
68 68
69 void onAutoplayInitiated(AutoplaySource); 69 void onAutoplayInitiated(AutoplaySource);
70 70
71 void recordCrossOriginAutoplayResult(CrossOriginAutoplayResult); 71 void recordCrossOriginAutoplayResult(CrossOriginAutoplayResult);
72 void recordAutoplayUnmuteStatus(AutoplayUnmuteActionStatus); 72 void recordAutoplayUnmuteStatus(AutoplayUnmuteActionStatus);
73 73
74 void didMoveToNewDocument(Document& oldDocument); 74 void didMoveToNewDocument(Document& oldDocument);
75 75
76 bool isVisible() const { return m_isVisible; } 76 bool isVisible() const { return m_isVisible; }
77 77
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // The observer is used to observer an autoplaying muted video changing it's 136 // The observer is used to observer an autoplaying muted video changing it's
137 // visibility, which is used for offscreen duration UMA. The UMA is pending 137 // visibility, which is used for offscreen duration UMA. The UMA is pending
138 // for recording as long as this observer is non-null. 138 // for recording as long as this observer is non-null.
139 Member<ElementVisibilityObserver> 139 Member<ElementVisibilityObserver>
140 m_mutedVideoOffscreenDurationVisibilityObserver; 140 m_mutedVideoOffscreenDurationVisibilityObserver;
141 }; 141 };
142 142
143 } // namespace blink 143 } // namespace blink
144 144
145 #endif // AutoplayUmaHelper_h 145 #endif // AutoplayUmaHelper_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/SuspendableTimer.cpp ('k') | third_party/WebKit/Source/core/html/AutoplayUmaHelper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698