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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.h

Issue 2297043002: Web expose FileSystemFileEntry, FileSystemDirectoryEntry and friends (Closed)
Patch Set: Rebased Created 4 years, 1 month 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: third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.h
diff --git a/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.h b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.h
similarity index 74%
rename from third_party/WebKit/Source/modules/filesystem/DirectoryEntry.h
rename to third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.h
index d8df09e90803915917125cc2b1eca67776f631c1..90c68aaef144b066c77f618693a54bc35a308263 100644
--- a/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.h
+++ b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.h
@@ -28,41 +28,41 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DirectoryEntry_h
-#define DirectoryEntry_h
+#ifndef FileSystemDirectoryEntry_h
+#define FileSystemDirectoryEntry_h
#include "modules/ModulesExport.h"
-#include "modules/filesystem/Entry.h"
+#include "modules/filesystem/FileSystemEntry.h"
#include "platform/heap/Handle.h"
#include "wtf/text/WTFString.h"
namespace blink {
-class DOMFileSystemBase;
-class DirectoryReader;
-class EntryCallback;
class ErrorCallback;
+class FileSystemBase;
+class FileSystemDirectoryReader;
+class FileSystemEntryCallback;
class FileSystemFlags;
class VoidCallback;
-class MODULES_EXPORT DirectoryEntry final : public Entry {
+class MODULES_EXPORT FileSystemDirectoryEntry final : public FileSystemEntry {
DEFINE_WRAPPERTYPEINFO();
public:
- static DirectoryEntry* create(DOMFileSystemBase* fileSystem,
- const String& fullPath) {
- return new DirectoryEntry(fileSystem, fullPath);
+ static FileSystemDirectoryEntry* create(FileSystemBase* fileSystem,
+ const String& fullPath) {
+ return new FileSystemDirectoryEntry(fileSystem, fullPath);
}
bool isDirectory() const override { return true; }
- DirectoryReader* createReader();
+ FileSystemDirectoryReader* createReader();
void getFile(const String& path,
const FileSystemFlags&,
- EntryCallback* = nullptr,
+ FileSystemEntryCallback* = nullptr,
ErrorCallback* = nullptr);
void getDirectory(const String& path,
const FileSystemFlags&,
- EntryCallback* = nullptr,
+ FileSystemEntryCallback* = nullptr,
ErrorCallback* = nullptr);
void removeRecursively(VoidCallback* successCallback = nullptr,
ErrorCallback* = nullptr) const;
@@ -70,15 +70,15 @@ class MODULES_EXPORT DirectoryEntry final : public Entry {
DECLARE_VIRTUAL_TRACE();
private:
- DirectoryEntry(DOMFileSystemBase*, const String& fullPath);
+ FileSystemDirectoryEntry(FileSystemBase*, const String& fullPath);
};
-DEFINE_TYPE_CASTS(DirectoryEntry,
- Entry,
+DEFINE_TYPE_CASTS(FileSystemDirectoryEntry,
+ FileSystemEntry,
entry,
entry->isDirectory(),
entry.isDirectory());
} // namespace blink
-#endif // DirectoryEntry_h
+#endif // FileSystemDirectoryEntry_h

Powered by Google App Engine
This is Rietveld 408576698