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

Unified Diff: Source/core/fileapi/Stream.h

Issue 176853004: Oilpan: move core/fileapi to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 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
« no previous file with comments | « Source/core/fileapi/FileReaderSync.idl ('k') | Source/core/fileapi/Stream.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/fileapi/FileReaderSync.idl ('k') | Source/core/fileapi/Stream.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698