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

Unified Diff: Source/modules/filesystem/DirectoryReaderSync.h

Issue 188503002: Oilpan: add transition types to FileSystem APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 9 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/modules/filesystem/DirectoryReaderBase.h ('k') | Source/modules/filesystem/DirectoryReaderSync.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/DirectoryReaderSync.h
diff --git a/Source/modules/filesystem/DirectoryReaderSync.h b/Source/modules/filesystem/DirectoryReaderSync.h
index e1eee91919935cfffcc92d42a5e7d436977ffe73..d8a384226b59460dc46dcd29cbaf2816dbcbdfea 100644
--- a/Source/modules/filesystem/DirectoryReaderSync.h
+++ b/Source/modules/filesystem/DirectoryReaderSync.h
@@ -33,6 +33,7 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/fileapi/FileError.h"
+#include "heap/Handle.h"
#include "modules/filesystem/DirectoryReaderBase.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -44,20 +45,20 @@ namespace WebCore {
class EntrySync;
class ExceptionState;
-typedef Vector<RefPtr<EntrySync> > EntrySyncVector;
+typedef WillBeHeapVector<RefPtrWillBeMember<EntrySync> > EntrySyncHeapVector;
class DirectoryReaderSync : public DirectoryReaderBase, public ScriptWrappable {
public:
- static PassRefPtr<DirectoryReaderSync> create(PassRefPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
+ static PassRefPtrWillBeRawPtr<DirectoryReaderSync> create(PassRefPtrWillBeRawPtr<DOMFileSystemBase> fileSystem, const String& fullPath)
{
- return adoptRef(new DirectoryReaderSync(fileSystem, fullPath));
+ return adoptRefWillBeNoop(new DirectoryReaderSync(fileSystem, fullPath));
}
virtual ~DirectoryReaderSync();
- EntrySyncVector readEntries(ExceptionState&);
+ EntrySyncHeapVector readEntries(ExceptionState&);
- void addEntries(const EntrySyncVector& entries)
+ void addEntries(const EntrySyncHeapVector& entries)
{
m_entries.appendVector(entries);
}
@@ -67,14 +68,16 @@ public:
m_errorCode = code;
}
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
class EntriesCallbackHelper;
class ErrorCallbackHelper;
- DirectoryReaderSync(PassRefPtr<DOMFileSystemBase>, const String& fullPath);
+ DirectoryReaderSync(PassRefPtrWillBeRawPtr<DOMFileSystemBase>, const String& fullPath);
int m_callbacksId;
- EntrySyncVector m_entries;
+ EntrySyncHeapVector m_entries;
FileError::ErrorCode m_errorCode;
};
« no previous file with comments | « Source/modules/filesystem/DirectoryReaderBase.h ('k') | Source/modules/filesystem/DirectoryReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698