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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntrySync.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/FileSystemDirectoryEntrySync.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.cpp b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntrySync.cpp
similarity index 66%
rename from third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.cpp
rename to third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntrySync.cpp
index 2cde8f8ffa21f79827f70d58e6196de5a0bd7082..07d41dfd3d666d57384764cabb1e83cb339938d4 100644
--- a/third_party/WebKit/Source/modules/filesystem/DirectoryEntrySync.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/FileSystemDirectoryEntrySync.cpp
@@ -28,56 +28,61 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "modules/filesystem/DirectoryEntrySync.h"
+#include "modules/filesystem/FileSystemDirectoryEntrySync.h"
#include "bindings/core/v8/ExceptionMessages.h"
#include "bindings/core/v8/ExceptionState.h"
-#include "modules/filesystem/DirectoryReaderSync.h"
-#include "modules/filesystem/FileEntrySync.h"
+#include "modules/filesystem/FileSystemDirectoryReaderSync.h"
+#include "modules/filesystem/FileSystemFileEntrySync.h"
#include "modules/filesystem/FileSystemFlags.h"
#include "modules/filesystem/SyncCallbackHelper.h"
namespace blink {
-DirectoryEntrySync::DirectoryEntrySync(DOMFileSystemBase* fileSystem,
- const String& fullPath)
- : EntrySync(fileSystem, fullPath) {}
+FileSystemDirectoryEntrySync::FileSystemDirectoryEntrySync(
+ FileSystemBase* fileSystem,
+ const String& fullPath)
+ : FileSystemEntrySync(fileSystem, fullPath) {}
-DirectoryReaderSync* DirectoryEntrySync::createReader() {
- return DirectoryReaderSync::create(m_fileSystem, m_fullPath);
+FileSystemDirectoryReaderSync* FileSystemDirectoryEntrySync::createReader() {
+ return FileSystemDirectoryReaderSync::create(m_fileSystem, m_fullPath);
}
-FileEntrySync* DirectoryEntrySync::getFile(const String& path,
- const FileSystemFlags& options,
- ExceptionState& exceptionState) {
+FileSystemFileEntrySync* FileSystemDirectoryEntrySync::getFile(
+ const String& path,
+ const FileSystemFlags& options,
+ ExceptionState& exceptionState) {
EntrySyncCallbackHelper* helper = EntrySyncCallbackHelper::create();
m_fileSystem->getFile(this, path, options, helper->getSuccessCallback(),
helper->getErrorCallback(),
- DOMFileSystemBase::Synchronous);
- return static_cast<FileEntrySync*>(helper->getResult(exceptionState));
+ FileSystemBase::Synchronous);
+ return static_cast<FileSystemFileEntrySync*>(
+ helper->getResult(exceptionState));
}
-DirectoryEntrySync* DirectoryEntrySync::getDirectory(
+FileSystemDirectoryEntrySync* FileSystemDirectoryEntrySync::getDirectory(
const String& path,
const FileSystemFlags& options,
ExceptionState& exceptionState) {
EntrySyncCallbackHelper* helper = EntrySyncCallbackHelper::create();
m_fileSystem->getDirectory(this, path, options, helper->getSuccessCallback(),
helper->getErrorCallback(),
- DOMFileSystemBase::Synchronous);
- return static_cast<DirectoryEntrySync*>(helper->getResult(exceptionState));
+ FileSystemBase::Synchronous);
+ return static_cast<FileSystemDirectoryEntrySync*>(
+ helper->getResult(exceptionState));
}
-void DirectoryEntrySync::removeRecursively(ExceptionState& exceptionState) {
+void FileSystemDirectoryEntrySync::removeRecursively(
+ ExceptionState& exceptionState) {
VoidSyncCallbackHelper* helper = VoidSyncCallbackHelper::create();
m_fileSystem->removeRecursively(this, helper->getSuccessCallback(),
helper->getErrorCallback(),
- DOMFileSystemBase::Synchronous);
+ FileSystemBase::Synchronous);
helper->getResult(exceptionState);
}
-DEFINE_TRACE(DirectoryEntrySync) {
- EntrySync::trace(visitor);
+DEFINE_TRACE(FileSystemDirectoryEntrySync) {
+ FileSystemEntrySync::trace(visitor);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698