Index: Source/modules/filesystem/DirectoryEntry.h |
diff --git a/Source/modules/filesystem/DirectoryEntry.h b/Source/modules/filesystem/DirectoryEntry.h |
index 169866ab874dbe0a8011fc53599d698e7d30ffcb..50381f085fe126a632d9866abbe3f3a5ac5bf18b 100644 |
--- a/Source/modules/filesystem/DirectoryEntry.h |
+++ b/Source/modules/filesystem/DirectoryEntry.h |
@@ -31,6 +31,7 @@ |
#ifndef DirectoryEntry_h |
#define DirectoryEntry_h |
+#include "heap/Handle.h" |
#include "modules/filesystem/Entry.h" |
#include "modules/filesystem/FileSystemFlags.h" |
#include "wtf/PassRefPtr.h" |
@@ -47,19 +48,21 @@ class VoidCallback; |
class DirectoryEntry FINAL : public Entry { |
public: |
- static PassRefPtr<DirectoryEntry> create(PassRefPtr<DOMFileSystemBase> fileSystem, const String& fullPath) |
+ static PassRefPtrWillBeRawPtr<DirectoryEntry> create(PassRefPtrWillBeRawPtr<DOMFileSystemBase> fileSystem, const String& fullPath) |
{ |
- return adoptRef(new DirectoryEntry(fileSystem, fullPath)); |
+ return adoptRefWillBeNoop(new DirectoryEntry(fileSystem, fullPath)); |
} |
virtual bool isDirectory() const OVERRIDE { return true; } |
- PassRefPtr<DirectoryReader> createReader(); |
+ PassRefPtrWillBeRawPtr<DirectoryReader> createReader(); |
void getFile(const String& path, const Dictionary&, PassOwnPtr<EntryCallback> = nullptr, PassOwnPtr<ErrorCallback> = nullptr); |
void getDirectory(const String& path, const Dictionary&, PassOwnPtr<EntryCallback> = nullptr, PassOwnPtr<ErrorCallback> = nullptr); |
void removeRecursively(PassOwnPtr<VoidCallback> successCallback = nullptr, PassOwnPtr<ErrorCallback> = nullptr) const; |
+ virtual void trace(Visitor*) OVERRIDE; |
+ |
private: |
- DirectoryEntry(PassRefPtr<DOMFileSystemBase>, const String& fullPath); |
+ DirectoryEntry(PassRefPtrWillBeRawPtr<DOMFileSystemBase>, const String& fullPath); |
}; |
DEFINE_TYPE_CASTS(DirectoryEntry, Entry, entry, entry->isDirectory(), entry.isDirectory()); |