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

Unified Diff: Source/modules/mediasource/WebKitSourceBufferList.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
Index: Source/modules/mediasource/WebKitSourceBufferList.h
diff --git a/Source/modules/mediasource/WebKitSourceBufferList.h b/Source/modules/mediasource/WebKitSourceBufferList.h
index 295899a224b10e4d8d2d558c09e5884a43ff1437..9ad72808b77afebdbaffb5564f1fbbd82921ca4f 100644
--- a/Source/modules/mediasource/WebKitSourceBufferList.h
+++ b/Source/modules/mediasource/WebKitSourceBufferList.h
@@ -41,7 +41,7 @@ namespace WebCore {
class WebKitSourceBuffer;
class GenericEventQueue;
-class WebKitSourceBufferList : public RefCounted<WebKitSourceBufferList>, public ScriptWrappable, public EventTarget {
+class WebKitSourceBufferList : public RefCounted<WebKitSourceBufferList>, public ScriptWrappable, public EventTargetWithInlineData {
public:
static PassRefPtr<WebKitSourceBufferList> create(ScriptExecutionContext* context, GenericEventQueue* asyncEventQueue)
{
@@ -63,10 +63,6 @@ public:
using RefCounted<WebKitSourceBufferList>::ref;
using RefCounted<WebKitSourceBufferList>::deref;
-protected:
- virtual EventTargetData* eventTargetData() OVERRIDE;
- virtual EventTargetData* ensureEventTargetData() OVERRIDE;
-
private:
WebKitSourceBufferList(ScriptExecutionContext*, GenericEventQueue*);
@@ -75,7 +71,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/SourceBufferList.cpp ('k') | Source/modules/mediasource/WebKitSourceBufferList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698