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

Unified Diff: Source/core/fileapi/FileList.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/FileError.h ('k') | Source/core/fileapi/FileList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/FileList.h
diff --git a/Source/core/fileapi/FileList.h b/Source/core/fileapi/FileList.h
index 75e07ae6febd2c466b5f37bd4e6b94d60a5a3284..736a6fcb84be552e1fc0b748dfa488839a394421 100644
--- a/Source/core/fileapi/FileList.h
+++ b/Source/core/fileapi/FileList.h
@@ -28,6 +28,7 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/fileapi/File.h"
+#include "heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/RefPtr.h"
@@ -35,11 +36,11 @@
namespace WebCore {
-class FileList : public ScriptWrappable, public RefCounted<FileList> {
+class FileList : public RefCountedWillBeGarbageCollectedFinalized<FileList>, public ScriptWrappable {
public:
- static PassRefPtr<FileList> create()
+ static PassRefPtrWillBeRawPtr<FileList> create()
{
- return adoptRef(new FileList);
+ return adoptRefWillBeNoop(new FileList);
}
unsigned length() const { return m_files.size(); }
@@ -47,13 +48,15 @@ public:
bool isEmpty() const { return m_files.isEmpty(); }
void clear() { m_files.clear(); }
- void append(PassRefPtr<File> file) { m_files.append(file); }
+ void append(PassRefPtrWillBeRawPtr<File> file) { m_files.append(file); }
Vector<String> paths() const;
+ void trace(Visitor*);
+
private:
FileList();
- Vector<RefPtr<File> > m_files;
+ WillBeHeapVector<RefPtrWillBeMember<File> > m_files;
};
} // namespace WebCore
« no previous file with comments | « Source/core/fileapi/FileError.h ('k') | Source/core/fileapi/FileList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698