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

Unified Diff: third_party/WebKit/Source/modules/mediasource/SourceBufferList.h

Issue 2622533002: Prefer ContextClient mixin over manual ExecutionContext handling. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/mediasource/SourceBufferList.h
diff --git a/third_party/WebKit/Source/modules/mediasource/SourceBufferList.h b/third_party/WebKit/Source/modules/mediasource/SourceBufferList.h
index 655814b0cc76c64a79ec78a46e4281b66e9a67e0..76d28d45fa22e50ec6cfa2559719648f027dfbdc 100644
--- a/third_party/WebKit/Source/modules/mediasource/SourceBufferList.h
+++ b/third_party/WebKit/Source/modules/mediasource/SourceBufferList.h
@@ -31,6 +31,7 @@
#ifndef SourceBufferList_h
#define SourceBufferList_h
+#include "core/dom/ExecutionContext.h"
#include "modules/EventTargetModules.h"
#include "platform/heap/Handle.h"
@@ -39,8 +40,10 @@ namespace blink {
class SourceBuffer;
class GenericEventQueue;
-class SourceBufferList final : public EventTargetWithInlineData {
+class SourceBufferList final : public EventTargetWithInlineData,
+ public ContextClient {
DEFINE_WRAPPERTYPEINFO();
+ USING_GARBAGE_COLLECTED_MIXIN(SourceBufferList);
public:
static SourceBufferList* create(ExecutionContext* context,
@@ -69,7 +72,9 @@ class SourceBufferList final : public EventTargetWithInlineData {
// EventTarget interface
const AtomicString& interfaceName() const override;
- ExecutionContext* getExecutionContext() const override;
+ ExecutionContext* getExecutionContext() const override {
+ return ContextClient::getExecutionContext();
+ }
DECLARE_VIRTUAL_TRACE();
@@ -78,7 +83,6 @@ class SourceBufferList final : public EventTargetWithInlineData {
void scheduleEvent(const AtomicString&);
- Member<ExecutionContext> m_executionContext;
Member<GenericEventQueue> m_asyncEventQueue;
HeapVector<Member<SourceBuffer>> m_list;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698