| Index: webkit/fileapi/local_file_util.cc
|
| diff --git a/webkit/fileapi/local_file_system_file_util.cc b/webkit/fileapi/local_file_util.cc
|
| similarity index 87%
|
| rename from webkit/fileapi/local_file_system_file_util.cc
|
| rename to webkit/fileapi/local_file_util.cc
|
| index 5d14644648040eb6c9d3671a24fbcb1b71a8ebda..5d321880d71b57c5885a05fad65fb3333ba9b3b6 100644
|
| --- a/webkit/fileapi/local_file_system_file_util.cc
|
| +++ b/webkit/fileapi/local_file_util.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "webkit/fileapi/local_file_system_file_util.h"
|
| +#include "webkit/fileapi/local_file_util.h"
|
|
|
| #include "base/file_util_proxy.h"
|
| #include "googleurl/src/gurl.h"
|
| @@ -14,15 +14,14 @@
|
|
|
| namespace fileapi {
|
|
|
| -LocalFileSystemFileUtil::LocalFileSystemFileUtil(
|
| - FileSystemFileUtil* underlying_file_util)
|
| - : underlying_file_util_(underlying_file_util) {
|
| +LocalFileUtil::LocalFileUtil(FileUtil* underlying_file_util)
|
| + : OverlayFileUtil(underlying_file_util) {
|
| }
|
|
|
| -LocalFileSystemFileUtil::~LocalFileSystemFileUtil() {
|
| +LocalFileUtil::~LocalFileUtil() {
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::CreateOrOpen(
|
| +PlatformFileError LocalFileUtil::CreateOrOpen(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path, int file_flags,
|
| PlatformFile* file_handle, bool* created) {
|
| @@ -35,7 +34,7 @@ PlatformFileError LocalFileSystemFileUtil::CreateOrOpen(
|
| context, local_path, file_flags, file_handle, created);
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::EnsureFileExists(
|
| +PlatformFileError LocalFileUtil::EnsureFileExists(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path,
|
| bool* created) {
|
| @@ -48,7 +47,7 @@ PlatformFileError LocalFileSystemFileUtil::EnsureFileExists(
|
| context, local_path, created);
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::GetLocalFilePath(
|
| +PlatformFileError LocalFileUtil::GetLocalFilePath(
|
| FileSystemOperationContext* context,
|
| const FilePath& virtual_path,
|
| FilePath* local_path) {
|
| @@ -62,7 +61,7 @@ PlatformFileError LocalFileSystemFileUtil::GetLocalFilePath(
|
| return base::PLATFORM_FILE_OK;
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::GetFileInfo(
|
| +PlatformFileError LocalFileUtil::GetFileInfo(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path,
|
| base::PlatformFileInfo* file_info,
|
| @@ -76,7 +75,7 @@ PlatformFileError LocalFileSystemFileUtil::GetFileInfo(
|
| context, local_path, file_info, platform_file_path);
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::ReadDirectory(
|
| +PlatformFileError LocalFileUtil::ReadDirectory(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path,
|
| std::vector<base::FileUtilProxy::Entry>* entries) {
|
| @@ -90,7 +89,7 @@ PlatformFileError LocalFileSystemFileUtil::ReadDirectory(
|
| context, local_path, entries);
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::CreateDirectory(
|
| +PlatformFileError LocalFileUtil::CreateDirectory(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path,
|
| bool exclusive,
|
| @@ -104,7 +103,7 @@ PlatformFileError LocalFileSystemFileUtil::CreateDirectory(
|
| context, local_path, exclusive, recursive);
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::CopyOrMoveFile(
|
| +PlatformFileError LocalFileUtil::CopyOrMoveFile(
|
| FileSystemOperationContext* context,
|
| const FilePath& src_file_path,
|
| const FilePath& dest_file_path,
|
| @@ -125,7 +124,7 @@ PlatformFileError LocalFileSystemFileUtil::CopyOrMoveFile(
|
| }
|
|
|
| // TODO(dmikurube): Make it independent from CopyOrMoveFile.
|
| -PlatformFileError LocalFileSystemFileUtil::CopyInForeignFile(
|
| +PlatformFileError LocalFileUtil::CopyInForeignFile(
|
| FileSystemOperationContext* context,
|
| const FilePath& src_file_path,
|
| const FilePath& dest_file_path) {
|
| @@ -140,7 +139,7 @@ PlatformFileError LocalFileSystemFileUtil::CopyInForeignFile(
|
| context, src_file_path, local_dest_path, true);
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::DeleteFile(
|
| +PlatformFileError LocalFileUtil::DeleteFile(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path) {
|
| FilePath local_path =
|
| @@ -152,7 +151,7 @@ PlatformFileError LocalFileSystemFileUtil::DeleteFile(
|
| context, local_path);
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::DeleteSingleDirectory(
|
| +PlatformFileError LocalFileUtil::DeleteSingleDirectory(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path) {
|
| FilePath local_path =
|
| @@ -164,7 +163,7 @@ PlatformFileError LocalFileSystemFileUtil::DeleteSingleDirectory(
|
| context, local_path);
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::Touch(
|
| +PlatformFileError LocalFileUtil::Touch(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path,
|
| const base::Time& last_access_time,
|
| @@ -178,7 +177,7 @@ PlatformFileError LocalFileSystemFileUtil::Touch(
|
| context, local_path, last_access_time, last_modified_time);
|
| }
|
|
|
| -PlatformFileError LocalFileSystemFileUtil::Truncate(
|
| +PlatformFileError LocalFileUtil::Truncate(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path,
|
| int64 length) {
|
| @@ -191,7 +190,7 @@ PlatformFileError LocalFileSystemFileUtil::Truncate(
|
| context, local_path, length);
|
| }
|
|
|
| -bool LocalFileSystemFileUtil::PathExists(
|
| +bool LocalFileUtil::PathExists(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path) {
|
| FilePath local_path =
|
| @@ -203,7 +202,7 @@ bool LocalFileSystemFileUtil::PathExists(
|
| context, local_path);
|
| }
|
|
|
| -bool LocalFileSystemFileUtil::DirectoryExists(
|
| +bool LocalFileUtil::DirectoryExists(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path) {
|
| FilePath local_path =
|
| @@ -215,7 +214,7 @@ bool LocalFileSystemFileUtil::DirectoryExists(
|
| context, local_path);
|
| }
|
|
|
| -bool LocalFileSystemFileUtil::IsDirectoryEmpty(
|
| +bool LocalFileUtil::IsDirectoryEmpty(
|
| FileSystemOperationContext* context,
|
| const FilePath& file_path) {
|
| FilePath local_path =
|
| @@ -228,7 +227,7 @@ bool LocalFileSystemFileUtil::IsDirectoryEmpty(
|
| }
|
|
|
| class LocalFileSystemFileEnumerator
|
| - : public FileSystemFileUtil::AbstractFileEnumerator {
|
| + : public FileUtil::AbstractFileEnumerator {
|
| public:
|
| LocalFileSystemFileEnumerator(const FilePath& platform_root_path,
|
| const FilePath& virtual_root_path,
|
| @@ -266,8 +265,7 @@ bool LocalFileSystemFileEnumerator::IsDirectory() {
|
| return file_util::FileEnumerator::IsDirectory(file_util_info);
|
| }
|
|
|
| -FileSystemFileUtil::AbstractFileEnumerator*
|
| -LocalFileSystemFileUtil::CreateFileEnumerator(
|
| +FileUtil::AbstractFileEnumerator* LocalFileUtil::CreateFileEnumerator(
|
| FileSystemOperationContext* context,
|
| const FilePath& root_path) {
|
| FilePath local_path =
|
| @@ -282,7 +280,7 @@ LocalFileSystemFileUtil::CreateFileEnumerator(
|
| file_util::FileEnumerator::DIRECTORIES));
|
| }
|
|
|
| -FilePath LocalFileSystemFileUtil::GetLocalPath(
|
| +FilePath LocalFileUtil::GetLocalPath(
|
| FileSystemOperationContext* context,
|
| const GURL& origin_url,
|
| FileSystemType type,
|
|
|