| 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
|
|
|