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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class ExceptionState; | 45 class ExceptionState; |
46 class FileReaderLoader; | 46 class FileReaderLoader; |
47 class GenericEventQueue; | 47 class GenericEventQueue; |
48 class MediaSource; | 48 class MediaSource; |
49 class Stream; | 49 class Stream; |
50 class TimeRanges; | 50 class TimeRanges; |
51 class WebSourceBuffer; | 51 class WebSourceBuffer; |
52 | 52 |
53 class SourceBuffer FINAL : public RefCountedGarbageCollectedWillBeGarbageCollect
edFinalized<SourceBuffer>, public ActiveDOMObject, public EventTargetWithInlineD
ata, public FileReaderLoaderClient { | 53 class SourceBuffer FINAL : public RefCountedGarbageCollectedWillBeGarbageCollect
edFinalized<SourceBuffer>, public ActiveDOMObject, public EventTargetWithInlineD
ata, public FileReaderLoaderClient { |
54 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S
ourceBuffer>); | 54 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<S
ourceBuffer>); |
| 55 DEFINE_WRAPPERTYPEINFO(); |
55 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SourceBuffer); | 56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SourceBuffer); |
56 public: | 57 public: |
57 static SourceBuffer* create(PassOwnPtr<WebSourceBuffer>, MediaSource*, Gener
icEventQueue*); | 58 static SourceBuffer* create(PassOwnPtr<WebSourceBuffer>, MediaSource*, Gener
icEventQueue*); |
58 static const AtomicString& segmentsKeyword(); | 59 static const AtomicString& segmentsKeyword(); |
59 static const AtomicString& sequenceKeyword(); | 60 static const AtomicString& sequenceKeyword(); |
60 | 61 |
61 virtual ~SourceBuffer(); | 62 virtual ~SourceBuffer(); |
62 | 63 |
63 // SourceBuffer.idl methods | 64 // SourceBuffer.idl methods |
64 const AtomicString& mode() const { return m_mode; } | 65 const AtomicString& mode() const { return m_mode; } |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 136 |
136 bool m_streamMaxSizeValid; | 137 bool m_streamMaxSizeValid; |
137 unsigned long long m_streamMaxSize; | 138 unsigned long long m_streamMaxSize; |
138 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; | 139 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; |
139 RefPtrWillBeMember<Stream> m_stream; | 140 RefPtrWillBeMember<Stream> m_stream; |
140 OwnPtr<FileReaderLoader> m_loader; | 141 OwnPtr<FileReaderLoader> m_loader; |
141 }; | 142 }; |
142 | 143 |
143 } // namespace blink | 144 } // namespace blink |
144 | 145 |
145 #endif | 146 #endif // SourceBuffer_h |
OLD | NEW |