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

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

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
Index: third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp
diff --git a/third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp b/third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp
index 535b6941c6680754681e5cfba42feb3f667d0e31..e689f7925dbb7e863d197a893ad808516b1fd533 100644
--- a/third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp
+++ b/third_party/WebKit/Source/modules/mediasource/SourceBufferList.cpp
@@ -30,7 +30,6 @@
#include "modules/mediasource/SourceBufferList.h"
-#include "core/dom/ExecutionContext.h"
#include "core/events/GenericEventQueue.h"
#include "modules/EventModules.h"
#include "modules/mediasource/SourceBuffer.h"
@@ -39,7 +38,7 @@ namespace blink {
SourceBufferList::SourceBufferList(ExecutionContext* context,
GenericEventQueue* asyncEventQueue)
- : m_executionContext(context), m_asyncEventQueue(asyncEventQueue) {}
+ : ContextClient(context), m_asyncEventQueue(asyncEventQueue) {}
SourceBufferList::~SourceBufferList() {}
@@ -79,15 +78,11 @@ const AtomicString& SourceBufferList::interfaceName() const {
return EventTargetNames::SourceBufferList;
}
-ExecutionContext* SourceBufferList::getExecutionContext() const {
- return m_executionContext;
-}
-
DEFINE_TRACE(SourceBufferList) {
- visitor->trace(m_executionContext);
visitor->trace(m_asyncEventQueue);
visitor->trace(m_list);
EventTargetWithInlineData::trace(visitor);
+ ContextClient::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698