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

Unified Diff: Source/modules/mediasource/SourceBufferList.h

Issue 270253004: Enable oilpan in modules/mediasource (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698