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

Unified Diff: Source/modules/filesystem/DirectoryEntry.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
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());
« no previous file with comments | « Source/modules/filesystem/DataTransferItemFileSystem.cpp ('k') | Source/modules/filesystem/DirectoryEntry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698