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 SourceBuffer_h | 31 #ifndef SourceBuffer_h |
32 #define SourceBuffer_h | 32 #define SourceBuffer_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/fileapi/FileReaderLoaderClient.h" | 36 #include "core/fileapi/FileReaderLoaderClient.h" |
36 #include "modules/EventTargetModules.h" | 37 #include "modules/EventTargetModules.h" |
37 #include "modules/mediasource/TrackDefaultList.h" | 38 #include "modules/mediasource/TrackDefaultList.h" |
38 #include "platform/AsyncMethodRunner.h" | 39 #include "platform/AsyncMethodRunner.h" |
39 #include "platform/weborigin/KURL.h" | 40 #include "platform/weborigin/KURL.h" |
40 #include "public/platform/WebSourceBufferClient.h" | 41 #include "public/platform/WebSourceBufferClient.h" |
41 #include "wtf/RefCounted.h" | 42 #include "wtf/RefCounted.h" |
42 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
43 | 44 |
44 namespace blink { | 45 namespace blink { |
45 | 46 |
46 class DOMArrayBuffer; | 47 class DOMArrayBuffer; |
47 class DOMArrayBufferView; | 48 class DOMArrayBufferView; |
48 class ExceptionState; | 49 class ExceptionState; |
49 class FileReaderLoader; | 50 class FileReaderLoader; |
50 class GenericEventQueue; | 51 class GenericEventQueue; |
51 class MediaSource; | 52 class MediaSource; |
52 class Stream; | 53 class Stream; |
53 class TimeRanges; | 54 class TimeRanges; |
54 class WebSourceBuffer; | 55 class WebSourceBuffer; |
55 | 56 |
56 class SourceBuffer final | 57 class SourceBuffer final |
57 : public RefCountedGarbageCollectedEventTargetWithInlineData<SourceBuffer> | 58 : public RefCountedGarbageCollectedEventTargetWithInlineData<SourceBuffer> |
58 , public ActiveDOMObject | 59 , public ActiveDOMObject |
59 , public FileReaderLoaderClient | 60 , public FileReaderLoaderClient |
60 , public WebSourceBufferClient { | 61 , public WebSourceBufferClient |
| 62 , public V8GCRoot { |
61 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SourceBuffer); | 63 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(SourceBuffer); |
62 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SourceBuffer); | 64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SourceBuffer); |
63 DEFINE_WRAPPERTYPEINFO(); | 65 DEFINE_WRAPPERTYPEINFO(); |
64 public: | 66 public: |
65 static SourceBuffer* create(PassOwnPtr<WebSourceBuffer>, MediaSource*, Gener
icEventQueue*); | 67 static SourceBuffer* create(PassOwnPtr<WebSourceBuffer>, MediaSource*, Gener
icEventQueue*); |
66 static const AtomicString& segmentsKeyword(); | 68 static const AtomicString& segmentsKeyword(); |
67 static const AtomicString& sequenceKeyword(); | 69 static const AtomicString& sequenceKeyword(); |
68 | 70 |
69 ~SourceBuffer() override; | 71 ~SourceBuffer() override; |
70 | 72 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 bool m_streamMaxSizeValid; | 158 bool m_streamMaxSizeValid; |
157 unsigned long long m_streamMaxSize; | 159 unsigned long long m_streamMaxSize; |
158 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; | 160 Member<AsyncMethodRunner<SourceBuffer>> m_appendStreamAsyncPartRunner; |
159 Member<Stream> m_stream; | 161 Member<Stream> m_stream; |
160 OwnPtr<FileReaderLoader> m_loader; | 162 OwnPtr<FileReaderLoader> m_loader; |
161 }; | 163 }; |
162 | 164 |
163 } // namespace blink | 165 } // namespace blink |
164 | 166 |
165 #endif // SourceBuffer_h | 167 #endif // SourceBuffer_h |
OLD | NEW |