| OLD | NEW |
| 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 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef MediaSource_h | 31 #ifndef MediaSource_h |
| 32 #define MediaSource_h | 32 #define MediaSource_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/V8GCRoot.h" |
| 34 #include "core/dom/ActiveDOMObject.h" | 35 #include "core/dom/ActiveDOMObject.h" |
| 35 #include "core/events/EventTarget.h" | 36 #include "core/events/EventTarget.h" |
| 36 #include "core/html/HTMLMediaSource.h" | 37 #include "core/html/HTMLMediaSource.h" |
| 37 #include "core/html/URLRegistry.h" | 38 #include "core/html/URLRegistry.h" |
| 38 #include "modules/mediasource/SourceBuffer.h" | 39 #include "modules/mediasource/SourceBuffer.h" |
| 39 #include "modules/mediasource/SourceBufferList.h" | 40 #include "modules/mediasource/SourceBufferList.h" |
| 40 #include "public/platform/WebMediaSource.h" | 41 #include "public/platform/WebMediaSource.h" |
| 41 #include "wtf/PassOwnPtr.h" | 42 #include "wtf/PassOwnPtr.h" |
| 42 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
| 43 | 44 |
| 44 namespace blink { | 45 namespace blink { |
| 45 | 46 |
| 46 class ExceptionState; | 47 class ExceptionState; |
| 47 class GenericEventQueue; | 48 class GenericEventQueue; |
| 48 class WebSourceBuffer; | 49 class WebSourceBuffer; |
| 49 | 50 |
| 50 class MediaSource final | 51 class MediaSource final |
| 51 : public RefCountedGarbageCollectedEventTargetWithInlineData<MediaSource> | 52 : public RefCountedGarbageCollectedEventTargetWithInlineData<MediaSource> |
| 52 , public HTMLMediaSource | 53 , public HTMLMediaSource |
| 53 , public ActiveDOMObject { | 54 , public ActiveDOMObject |
| 55 , public V8GCRoot { |
| 54 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MediaSource); | 56 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MediaSource); |
| 55 DEFINE_WRAPPERTYPEINFO(); | 57 DEFINE_WRAPPERTYPEINFO(); |
| 56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaSource); | 58 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaSource); |
| 57 public: | 59 public: |
| 58 static const AtomicString& openKeyword(); | 60 static const AtomicString& openKeyword(); |
| 59 static const AtomicString& closedKeyword(); | 61 static const AtomicString& closedKeyword(); |
| 60 static const AtomicString& endedKeyword(); | 62 static const AtomicString& endedKeyword(); |
| 61 | 63 |
| 62 static MediaSource* create(ExecutionContext*); | 64 static MediaSource* create(ExecutionContext*); |
| 63 ~MediaSource() override; | 65 ~MediaSource() override; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 136 |
| 135 Member<SourceBufferList> m_sourceBuffers; | 137 Member<SourceBufferList> m_sourceBuffers; |
| 136 Member<SourceBufferList> m_activeSourceBuffers; | 138 Member<SourceBufferList> m_activeSourceBuffers; |
| 137 | 139 |
| 138 bool m_isAddedToRegistry; | 140 bool m_isAddedToRegistry; |
| 139 }; | 141 }; |
| 140 | 142 |
| 141 } // namespace blink | 143 } // namespace blink |
| 142 | 144 |
| 143 #endif // MediaSource_h | 145 #endif // MediaSource_h |
| OLD | NEW |