Chromium Code Reviews| Index: Source/core/fileapi/Stream.h |
| diff --git a/Source/core/fileapi/Stream.h b/Source/core/fileapi/Stream.h |
| index d3287ba1ff261d36466e52c4e3173418e9d81479..5426ee97afa2fda89797e6e6b8ebdba1e86dc6fe 100644 |
| --- a/Source/core/fileapi/Stream.h |
| +++ b/Source/core/fileapi/Stream.h |
| @@ -33,6 +33,7 @@ |
| #include "bindings/v8/ScriptWrappable.h" |
| #include "core/dom/ActiveDOMObject.h" |
| +#include "heap/Handle.h" |
| #include "platform/weborigin/KURL.h" |
| #include "wtf/PassRefPtr.h" |
| #include "wtf/RefCounted.h" |
| @@ -42,11 +43,12 @@ namespace WebCore { |
| class ExecutionContext; |
| -class Stream FINAL : public ScriptWrappable, public ActiveDOMObject, public RefCounted<Stream> { |
| +class Stream FINAL : public RefCountedWillBeRefCountedGarbageCollected<Stream>, public ScriptWrappable, public ActiveDOMObject { |
|
haraken
2014/02/24 13:49:14
Not related to this CL, but we should kill ActiveD
sof
2014/02/24 17:09:09
Not doing that bookkeeping correctly was the cause
|
| + DECLARE_GC_INFO; |
| public: |
| - static PassRefPtr<Stream> create(ExecutionContext* context, const String& mediaType) |
| + static PassRefPtrWillBeRawPtr<Stream> create(ExecutionContext* context, const String& mediaType) |
| { |
| - RefPtr<Stream> stream = adoptRef(new Stream(context, mediaType)); |
| + RefPtrWillBeRawPtr<Stream> stream = adoptRefCountedWillBeRefCountedGarbageCollected(new Stream(context, mediaType)); |
| stream->suspendIfNeeded(); |
| return stream.release(); |
| } |
| @@ -80,6 +82,8 @@ public: |
| virtual void resume() OVERRIDE; |
| virtual void stop() OVERRIDE; |
| + void trace(Visitor*) { } |
| + |
| protected: |
| Stream(ExecutionContext*, const String& mediaType); |