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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntrySync.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/FileSystemDirectoryEntrySync.h
diff --git a/third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.h b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntrySync.h
similarity index 67%
rename from third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.h
rename to third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntrySync.h
index 0fca130007c47890842185728a2138494a45e848..d9bda087dc0a1304ee3cf694208aac6e2ed86a1f 100644
--- a/third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.h
+++ b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntrySync.h
@@ -28,50 +28,50 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef DirectoryEntrySync_h
-#define DirectoryEntrySync_h
+#ifndef FileSystemDirectoryEntrySync_h
+#define FileSystemDirectoryEntrySync_h
-#include "modules/filesystem/EntrySync.h"
+#include "modules/filesystem/FileSystemEntrySync.h"
#include "wtf/text/WTFString.h"
namespace blink {
-class DirectoryReaderSync;
class ExceptionState;
-class FileEntrySync;
+class FileSystemDirectoryReaderSync;
+class FileSystemFileEntrySync;
class FileSystemFlags;
-class DirectoryEntrySync final : public EntrySync {
+class FileSystemDirectoryEntrySync final : public FileSystemEntrySync {
DEFINE_WRAPPERTYPEINFO();
public:
- static DirectoryEntrySync* create(DOMFileSystemBase* fileSystem,
- const String& fullPath) {
- return new DirectoryEntrySync(fileSystem, fullPath);
+ static FileSystemDirectoryEntrySync* create(FileSystemBase* fileSystem,
+ const String& fullPath) {
+ return new FileSystemDirectoryEntrySync(fileSystem, fullPath);
}
bool isDirectory() const override { return true; }
- DirectoryReaderSync* createReader();
- FileEntrySync* getFile(const String& path,
- const FileSystemFlags&,
- ExceptionState&);
- DirectoryEntrySync* getDirectory(const String& path,
+ FileSystemDirectoryReaderSync* createReader();
+ FileSystemFileEntrySync* getFile(const String& path,
const FileSystemFlags&,
ExceptionState&);
+ FileSystemDirectoryEntrySync* getDirectory(const String& path,
+ const FileSystemFlags&,
+ ExceptionState&);
void removeRecursively(ExceptionState&);
DECLARE_VIRTUAL_TRACE();
private:
- DirectoryEntrySync(DOMFileSystemBase*, const String& fullPath);
+ FileSystemDirectoryEntrySync(FileSystemBase*, const String& fullPath);
};
-DEFINE_TYPE_CASTS(DirectoryEntrySync,
- EntrySync,
+DEFINE_TYPE_CASTS(FileSystemDirectoryEntrySync,
+ FileSystemEntrySync,
entry,
entry->isDirectory(),
entry.isDirectory());
} // namespace blink
-#endif // DirectoryEntrySync_h
+#endif // FileSystemDirectoryEntrySync_h

Powered by Google App Engine
This is Rietveld 408576698