diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.h b/chromium/third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.h index 7192fdea10b..b4f2999c3ef 100644 --- a/chromium/third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.h +++ b/chromium/third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.h @@ -33,8 +33,6 @@ #include "modules/filesystem/EntrySync.h" #include "modules/filesystem/FileSystemFlags.h" -#include "wtf/PassRefPtr.h" -#include "wtf/RefCounted.h" #include "wtf/text/WTFString.h" namespace WebCore { @@ -43,22 +41,23 @@ class DirectoryReaderSync; class ExceptionState; class FileEntrySync; -class DirectoryEntrySync : public EntrySync { +class DirectoryEntrySync FINAL : public EntrySync { public: - static PassRefPtr<DirectoryEntrySync> create(PassRefPtr<DOMFileSystemBase> fileSystem, const String& fullPath) + static DirectoryEntrySync* create(DOMFileSystemBase* fileSystem, const String& fullPath) { - return adoptRef(new DirectoryEntrySync(fileSystem, fullPath)); + return new DirectoryEntrySync(fileSystem, fullPath); } - virtual bool isDirectory() const { return true; } + virtual bool isDirectory() const OVERRIDE { return true; } - PassRefPtr<DirectoryReaderSync> createReader(); - PassRefPtr<FileEntrySync> getFile(const String& path, const Dictionary&, ExceptionState&); - PassRefPtr<DirectoryEntrySync> getDirectory(const String& path, const Dictionary&, ExceptionState&); + DirectoryReaderSync* createReader(); + FileEntrySync* getFile(const String& path, const Dictionary&, ExceptionState&); + DirectoryEntrySync* getDirectory(const String& path, const Dictionary&, ExceptionState&); void removeRecursively(ExceptionState&); + virtual void trace(Visitor*) OVERRIDE; + private: - friend class EntrySync; - DirectoryEntrySync(PassRefPtr<DOMFileSystemBase>, const String& fullPath); + DirectoryEntrySync(DOMFileSystemBase*, const String& fullPath); }; DEFINE_TYPE_CASTS(DirectoryEntrySync, EntrySync, entry, entry->isDirectory(), entry.isDirectory()); |