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

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

Issue 26878003: Reduce repetitive EventTarget subclassing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nit Created 7 years, 2 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 | « Source/modules/mediasource/SourceBuffer.cpp ('k') | Source/modules/mediasource/SourceBufferList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediasource/SourceBufferList.h
diff --git a/Source/modules/mediasource/SourceBufferList.h b/Source/modules/mediasource/SourceBufferList.h
index 5ef214c5821dcf259605b74bed2ced11b84816f7..ad1ca710004e8bd6758b033c76599177febb6227 100644
--- a/Source/modules/mediasource/SourceBufferList.h
+++ b/Source/modules/mediasource/SourceBufferList.h
@@ -41,7 +41,7 @@ namespace WebCore {
class SourceBuffer;
class GenericEventQueue;
-class SourceBufferList : public RefCounted<SourceBufferList>, public ScriptWrappable, public EventTarget {
+class SourceBufferList : public RefCounted<SourceBufferList>, public ScriptWrappable, public EventTargetWithInlineData {
public:
static PassRefPtr<SourceBufferList> create(ScriptExecutionContext* context, GenericEventQueue* asyncEventQueue)
{
@@ -64,10 +64,6 @@ public:
using RefCounted<SourceBufferList>::ref;
using RefCounted<SourceBufferList>::deref;
-protected:
- virtual EventTargetData* eventTargetData() OVERRIDE;
- virtual EventTargetData* ensureEventTargetData() OVERRIDE;
-
private:
SourceBufferList(ScriptExecutionContext*, GenericEventQueue*);
@@ -76,7 +72,6 @@ private:
virtual void refEventTarget() OVERRIDE { ref(); }
virtual void derefEventTarget() OVERRIDE { deref(); }
- EventTargetData m_eventTargetData;
ScriptExecutionContext* m_scriptExecutionContext;
GenericEventQueue* m_asyncEventQueue;
« no previous file with comments | « Source/modules/mediasource/SourceBuffer.cpp ('k') | Source/modules/mediasource/SourceBufferList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698