| Index: Source/core/fileapi/Stream.h
|
| diff --git a/Source/core/fileapi/Stream.h b/Source/core/fileapi/Stream.h
|
| index d3287ba1ff261d36466e52c4e3173418e9d81479..fc181b4b7fa52cc45f22dc835e62bedac0ec257d 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,11 @@ namespace WebCore {
|
|
|
| class ExecutionContext;
|
|
|
| -class Stream FINAL : public ScriptWrappable, public ActiveDOMObject, public RefCounted<Stream> {
|
| +class Stream FINAL : public RefCountedWillBeRefCountedGarbageCollected<Stream>, public ScriptWrappable, public ActiveDOMObject {
|
| 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 = adoptRefWillBeRefCountedGarbageCollected(new Stream(context, mediaType));
|
| stream->suspendIfNeeded();
|
| return stream.release();
|
| }
|
| @@ -80,6 +81,8 @@ public:
|
| virtual void resume() OVERRIDE;
|
| virtual void stop() OVERRIDE;
|
|
|
| + void trace(Visitor*) { }
|
| +
|
| protected:
|
| Stream(ExecutionContext*, const String& mediaType);
|
|
|
|
|