Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / filesystem / DirectoryEntrySync.h
index 7395815..274dcca 100644 (file)
 
 #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 {
+namespace blink {
 
 class DirectoryReaderSync;
 class ExceptionState;
 class FileEntrySync;
 
 class DirectoryEntrySync FINAL : public EntrySync {
+    DEFINE_WRAPPERTYPEINFO();
 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 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:
-    DirectoryEntrySync(PassRefPtr<DOMFileSystemBase>, const String& fullPath);
+    DirectoryEntrySync(DOMFileSystemBase*, const String& fullPath);
 };
 
 DEFINE_TYPE_CASTS(DirectoryEntrySync, EntrySync, entry, entry->isDirectory(), entry.isDirectory());
 
-}
+} // namespace blink
 
 #endif // DirectoryEntrySync_h