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

Unified Diff: Source/core/fileapi/FileReaderSync.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/FileReader.idl ('k') | Source/core/fileapi/FileReaderSync.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/FileReaderSync.h
diff --git a/Source/core/fileapi/FileReaderSync.h b/Source/core/fileapi/FileReaderSync.h
index 227a5911609276680f5ef0cc55e78888bac69371..be525e7da7b5051563eed3da6ce0bebb0273c63c 100644
--- a/Source/core/fileapi/FileReaderSync.h
+++ b/Source/core/fileapi/FileReaderSync.h
@@ -32,6 +32,7 @@
#define FileReaderSync_h
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "wtf/Forward.h"
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
@@ -43,11 +44,11 @@ class ExceptionState;
class FileReaderLoader;
class ExecutionContext;
-class FileReaderSync FINAL : public RefCounted<FileReaderSync>, public ScriptWrappable {
+class FileReaderSync FINAL : public RefCountedWillBeGarbageCollectedFinalized<FileReaderSync>, public ScriptWrappable {
public:
- static PassRefPtr<FileReaderSync> create()
+ static PassRefPtrWillBeRawPtr<FileReaderSync> create()
{
- return adoptRef(new FileReaderSync());
+ return adoptRefWillBeNoop(new FileReaderSync());
}
~FileReaderSync() { }
@@ -61,6 +62,8 @@ public:
String readAsText(ExecutionContext*, Blob*, const String& encoding, ExceptionState&);
String readAsDataURL(ExecutionContext*, Blob*, ExceptionState&);
+ void trace(Visitor*) { }
+
private:
FileReaderSync();
« no previous file with comments | « Source/core/fileapi/FileReader.idl ('k') | Source/core/fileapi/FileReaderSync.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698