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

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

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.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.cpp b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.cpp
similarity index 67%
rename from third_party/WebKit/Source/modules/filesystem/DirectoryEntry.cpp
rename to third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.cpp
index 4d29cd226a03c251e1a46f7afc2bd4cda653b5e1..be2c57e2e91b7c022a131889bed2a2e600f14125 100644
--- a/third_party/WebKit/Source/modules/filesystem/DirectoryEntry.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntry.cpp
@@ -28,50 +28,52 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "modules/filesystem/DirectoryEntry.h"
+#include "modules/filesystem/FileSystemDirectoryEntry.h"
#include "core/fileapi/FileError.h"
#include "core/html/VoidCallback.h"
-#include "modules/filesystem/DirectoryReader.h"
-#include "modules/filesystem/EntryCallback.h"
#include "modules/filesystem/ErrorCallback.h"
#include "modules/filesystem/FileSystemCallbacks.h"
+#include "modules/filesystem/FileSystemDirectoryReader.h"
+#include "modules/filesystem/FileSystemEntryCallback.h"
#include "modules/filesystem/FileSystemFlags.h"
namespace blink {
-DirectoryEntry::DirectoryEntry(DOMFileSystemBase* fileSystem,
- const String& fullPath)
- : Entry(fileSystem, fullPath) {}
+FileSystemDirectoryEntry::FileSystemDirectoryEntry(FileSystemBase* fileSystem,
+ const String& fullPath)
+ : FileSystemEntry(fileSystem, fullPath) {}
-DirectoryReader* DirectoryEntry::createReader() {
- return DirectoryReader::create(m_fileSystem, m_fullPath);
+FileSystemDirectoryReader* FileSystemDirectoryEntry::createReader() {
+ return FileSystemDirectoryReader::create(m_fileSystem, m_fullPath);
}
-void DirectoryEntry::getFile(const String& path,
- const FileSystemFlags& options,
- EntryCallback* successCallback,
- ErrorCallback* errorCallback) {
+void FileSystemDirectoryEntry::getFile(const String& path,
+ const FileSystemFlags& options,
+ FileSystemEntryCallback* successCallback,
+ ErrorCallback* errorCallback) {
m_fileSystem->getFile(this, path, options, successCallback,
ScriptErrorCallback::wrap(errorCallback));
}
-void DirectoryEntry::getDirectory(const String& path,
- const FileSystemFlags& options,
- EntryCallback* successCallback,
- ErrorCallback* errorCallback) {
+void FileSystemDirectoryEntry::getDirectory(
+ const String& path,
+ const FileSystemFlags& options,
+ FileSystemEntryCallback* successCallback,
+ ErrorCallback* errorCallback) {
m_fileSystem->getDirectory(this, path, options, successCallback,
ScriptErrorCallback::wrap(errorCallback));
}
-void DirectoryEntry::removeRecursively(VoidCallback* successCallback,
- ErrorCallback* errorCallback) const {
+void FileSystemDirectoryEntry::removeRecursively(
+ VoidCallback* successCallback,
+ ErrorCallback* errorCallback) const {
m_fileSystem->removeRecursively(this, successCallback,
ScriptErrorCallback::wrap(errorCallback));
}
-DEFINE_TRACE(DirectoryEntry) {
- Entry::trace(visitor);
+DEFINE_TRACE(FileSystemDirectoryEntry) {
+ FileSystemEntry::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698