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

Side by Side Diff: Source/modules/mediasource/MediaSourceBase.h

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "core/dom/EventTarget.h" 35 #include "core/dom/EventTarget.h"
36 #include "core/html/URLRegistry.h" 36 #include "core/html/URLRegistry.h"
37 #include "core/platform/graphics/MediaSourcePrivate.h" 37 #include "core/platform/graphics/MediaSourcePrivate.h"
38 #include "wtf/PassOwnPtr.h" 38 #include "wtf/PassOwnPtr.h"
39 #include "wtf/RefCounted.h" 39 #include "wtf/RefCounted.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 class GenericEventQueue; 43 class GenericEventQueue;
44 44
45 class MediaSourceBase : public RefCounted<MediaSourceBase>, public ActiveDOMObje ct, public EventTarget, public URLRegistrable { 45 class MediaSourceBase : public EventTarget, public RefCounted<MediaSourceBase>, public ActiveDOMObject, public URLRegistrable {
46 public: 46 public:
47 static const AtomicString& openKeyword(); 47 static const AtomicString& openKeyword();
48 static const AtomicString& closedKeyword(); 48 static const AtomicString& closedKeyword();
49 static const AtomicString& endedKeyword(); 49 static const AtomicString& endedKeyword();
50 50
51 virtual ~MediaSourceBase(); 51 virtual ~MediaSourceBase();
52 52
53 void setPrivateAndOpen(PassOwnPtr<MediaSourcePrivate>); 53 void setPrivateAndOpen(PassOwnPtr<MediaSourcePrivate>);
54 void addedToRegistry(); 54 void addedToRegistry();
55 void removedFromRegistry(); 55 void removedFromRegistry();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 private: 94 private:
95 OwnPtr<MediaSourcePrivate> m_private; 95 OwnPtr<MediaSourcePrivate> m_private;
96 EventTargetData m_eventTargetData; 96 EventTargetData m_eventTargetData;
97 AtomicString m_readyState; 97 AtomicString m_readyState;
98 OwnPtr<GenericEventQueue> m_asyncEventQueue; 98 OwnPtr<GenericEventQueue> m_asyncEventQueue;
99 }; 99 };
100 100
101 } 101 }
102 102
103 #endif 103 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698