| Index: Source/modules/mediasource/SourceBufferList.h
|
| diff --git a/Source/modules/mediasource/SourceBufferList.h b/Source/modules/mediasource/SourceBufferList.h
|
| index 05d1c28788763c10b85d5b4d380ae68adea4aa2c..2a34b2c5950d0e081625a0471acf66ae53d4e1b2 100644
|
| --- a/Source/modules/mediasource/SourceBufferList.h
|
| +++ b/Source/modules/mediasource/SourceBufferList.h
|
| @@ -42,19 +42,19 @@ namespace WebCore {
|
| class SourceBuffer;
|
| class GenericEventQueue;
|
|
|
| -class SourceBufferList FINAL : public RefCountedWillBeRefCountedGarbageCollected<SourceBufferList>, public ScriptWrappable, public EventTargetWithInlineData {
|
| - DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<SourceBufferList>);
|
| +class SourceBufferList FINAL : public RefCountedGarbageCollected<SourceBufferList>, public ScriptWrappable, public EventTargetWithInlineData {
|
| + DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedGarbageCollected<SourceBufferList>);
|
| public:
|
| - static PassRefPtrWillBeRawPtr<SourceBufferList> create(ExecutionContext* context, GenericEventQueue* asyncEventQueue)
|
| + static SourceBufferList* create(ExecutionContext* context, GenericEventQueue* asyncEventQueue)
|
| {
|
| - return adoptRefWillBeRefCountedGarbageCollected(new SourceBufferList(context, asyncEventQueue));
|
| + return adoptRefCountedGarbageCollected(new SourceBufferList(context, asyncEventQueue));
|
| }
|
| virtual ~SourceBufferList();
|
|
|
| unsigned long length() const { return m_list.size(); }
|
| SourceBuffer* item(unsigned long index) const { return (index < m_list.size()) ? m_list[index].get() : 0; }
|
|
|
| - void add(PassRefPtrWillBeRawPtr<SourceBuffer>);
|
| + void add(SourceBuffer*);
|
| void remove(SourceBuffer*);
|
| bool contains(SourceBuffer* buffer) { return m_list.find(buffer) != kNotFound; }
|
| void clear();
|
| @@ -73,7 +73,7 @@ private:
|
| ExecutionContext* m_executionContext;
|
| GenericEventQueue* m_asyncEventQueue;
|
|
|
| - WillBeHeapVector<RefPtrWillBeMember<SourceBuffer> > m_list;
|
| + HeapVector<Member<SourceBuffer> > m_list;
|
| };
|
|
|
| } // namespace WebCore
|
|
|