| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef Entry_h | 31 #ifndef Entry_h |
| 32 #define Entry_h | 32 #define Entry_h |
| 33 | 33 |
| 34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
| 35 #include "modules/filesystem/DOMFileSystem.h" | 35 #include "modules/filesystem/DOMFileSystem.h" |
| 36 #include "modules/filesystem/EntryBase.h" | 36 #include "modules/filesystem/EntryBase.h" |
| 37 #include "platform/heap/Handle.h" | |
| 38 | 37 |
| 39 namespace blink { | 38 namespace blink { |
| 40 | 39 |
| 41 class DirectoryEntry; | 40 class DirectoryEntry; |
| 42 class EntryCallback; | 41 class EntryCallback; |
| 43 class EntrySync; | |
| 44 class ErrorCallback; | 42 class ErrorCallback; |
| 45 class MetadataCallback; | 43 class MetadataCallback; |
| 46 class VoidCallback; | 44 class VoidCallback; |
| 47 | 45 |
| 48 class Entry : public EntryBase, public ScriptWrappable { | 46 class Entry : public EntryBase, public ScriptWrappable { |
| 49 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
| 50 public: | 48 public: |
| 51 DOMFileSystem* filesystem() const { return static_cast<DOMFileSystem*>(m_fil
eSystem.get()); } | 49 DOMFileSystem* filesystem() const { return static_cast<DOMFileSystem*>(m_fil
eSystem.get()); } |
| 52 | 50 |
| 53 void getMetadata(MetadataCallback* successCallback = nullptr, ErrorCallback*
= nullptr); | 51 void getMetadata(MetadataCallback* successCallback = nullptr, ErrorCallback*
= nullptr); |
| 54 void moveTo(DirectoryEntry* parent, const String& name = String(), EntryCall
back* successCallback = nullptr, ErrorCallback* = nullptr) const; | 52 void moveTo(DirectoryEntry* parent, const String& name = String(), EntryCall
back* successCallback = nullptr, ErrorCallback* = nullptr) const; |
| 55 void copyTo(DirectoryEntry* parent, const String& name = String(), EntryCall
back* successCallback = nullptr, ErrorCallback* = nullptr) const; | 53 void copyTo(DirectoryEntry* parent, const String& name = String(), EntryCall
back* successCallback = nullptr, ErrorCallback* = nullptr) const; |
| 56 void remove(VoidCallback* successCallback = nullptr, ErrorCallback* = nullpt
r) const; | 54 void remove(VoidCallback* successCallback = nullptr, ErrorCallback* = nullpt
r) const; |
| 57 void getParent(EntryCallback* successCallback = nullptr, ErrorCallback* = nu
llptr) const; | 55 void getParent(EntryCallback* successCallback = nullptr, ErrorCallback* = nu
llptr) const; |
| 58 | 56 |
| 59 virtual void trace(Visitor*) override; | 57 virtual void trace(Visitor*) override; |
| 60 | 58 |
| 61 protected: | 59 protected: |
| 62 Entry(DOMFileSystemBase*, const String& fullPath); | 60 Entry(DOMFileSystemBase*, const String& fullPath); |
| 63 }; | 61 }; |
| 64 | 62 |
| 65 } // namespace blink | 63 } // namespace blink |
| 66 | 64 |
| 67 #endif // Entry_h | 65 #endif // Entry_h |
| OLD | NEW |