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

Unified Diff: Source/core/fileapi/Blob.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/events/MessageEvent.cpp ('k') | Source/core/fileapi/Blob.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/Blob.h
diff --git a/Source/core/fileapi/Blob.h b/Source/core/fileapi/Blob.h
index f63761cb63ff7352bba4f0816be78e9db5813a0e..8a559d795a49e30ca0cb69cdfb5e4a60a8de5d19 100644
--- a/Source/core/fileapi/Blob.h
+++ b/Source/core/fileapi/Blob.h
@@ -33,6 +33,7 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/html/URLRegistry.h"
+#include "heap/Handle.h"
#include "platform/blob/BlobData.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/PassRefPtr.h"
@@ -43,22 +44,22 @@ namespace WebCore {
class ExecutionContext;
-class Blob : public ScriptWrappable, public URLRegistrable, public RefCounted<Blob> {
+class Blob : public RefCountedWillBeGarbageCollectedFinalized<Blob>, public ScriptWrappable, public URLRegistrable {
public:
- static PassRefPtr<Blob> create()
+ static PassRefPtrWillBeRawPtr<Blob> create()
{
- return adoptRef(new Blob(BlobDataHandle::create()));
+ return adoptRefWillBeNoop(new Blob(BlobDataHandle::create()));
}
- static PassRefPtr<Blob> create(PassRefPtr<BlobDataHandle> blobDataHandle)
+ static PassRefPtrWillBeRawPtr<Blob> create(PassRefPtr<BlobDataHandle> blobDataHandle)
{
- return adoptRef(new Blob(blobDataHandle));
+ return adoptRefWillBeNoop(new Blob(blobDataHandle));
}
virtual ~Blob();
virtual unsigned long long size() const { return m_blobDataHandle->size(); }
- virtual PassRefPtr<Blob> slice(long long start = 0, long long end = std::numeric_limits<long long>::max(), const String& contentType = String()) const;
+ virtual PassRefPtrWillBeRawPtr<Blob> slice(long long start = 0, long long end = std::numeric_limits<long long>::max(), const String& contentType = String()) const;
virtual void close(ExecutionContext*);
String type() const { return m_blobDataHandle->type(); }
@@ -76,6 +77,8 @@ public:
// URLRegistrable to support PublicURLs.
virtual URLRegistry& registry() const OVERRIDE FINAL;
+ void trace(Visitor*) { }
+
protected:
explicit Blob(PassRefPtr<BlobDataHandle>);
« no previous file with comments | « Source/core/events/MessageEvent.cpp ('k') | Source/core/fileapi/Blob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698