diff options
author | pilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-22 19:58:31 +0000 |
---|---|---|
committer | pilgrim@chromium.org <pilgrim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-22 20:01:57 +0000 |
commit | cd501a7565dd6054a120fbfe62d45b2299cfcc3b (patch) | |
tree | efe35c31d00f40b2fa9e6dbafd5f9f694f47367e /webkit/browser/fileapi/local_file_util.cc | |
parent | 604e202d3548b701900c3771f9517103bb91486c (diff) | |
download | chromium_src-cd501a7565dd6054a120fbfe62d45b2299cfcc3b.zip chromium_src-cd501a7565dd6054a120fbfe62d45b2299cfcc3b.tar.gz chromium_src-cd501a7565dd6054a120fbfe62d45b2299cfcc3b.tar.bz2 |
Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single storage namespace
As discussed here:
https://groups.google.com/a/chromium.org/forum/#!topic/storage-dev/aQall8GOrS4
BUG=338338
TBR=cevans
NOTRY=true
Review URL: https://codereview.chromium.org/492873002
Cr-Commit-Position: refs/heads/master@{#291485}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291485 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/browser/fileapi/local_file_util.cc')
-rw-r--r-- | webkit/browser/fileapi/local_file_util.cc | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/webkit/browser/fileapi/local_file_util.cc b/webkit/browser/fileapi/local_file_util.cc index 3b823aa..fff13b5 100644 --- a/webkit/browser/fileapi/local_file_util.cc +++ b/webkit/browser/fileapi/local_file_util.cc @@ -16,7 +16,7 @@ #include "webkit/common/fileapi/file_system_types.h" #include "webkit/common/fileapi/file_system_util.h" -namespace fileapi { +namespace storage { AsyncFileUtil* AsyncFileUtil::CreateForLocalFileSystem() { return new AsyncFileUtilAdapter(new LocalFileUtil()); @@ -202,8 +202,10 @@ base::File::Error LocalFileUtil::CopyOrMoveFile( return error; return NativeFileUtil::CopyOrMoveFile( - src_file_path, dest_file_path, option, - fileapi::NativeFileUtil::CopyOrMoveModeForDestination(dest_url, copy)); + src_file_path, + dest_file_path, + option, + storage::NativeFileUtil::CopyOrMoveModeForDestination(dest_url, copy)); } base::File::Error LocalFileUtil::CopyInForeignFile( @@ -219,8 +221,10 @@ base::File::Error LocalFileUtil::CopyInForeignFile( if (error != base::File::FILE_OK) return error; return NativeFileUtil::CopyOrMoveFile( - src_file_path, dest_file_path, FileSystemOperation::OPTION_NONE, - fileapi::NativeFileUtil::CopyOrMoveModeForDestination(dest_url, + src_file_path, + dest_file_path, + FileSystemOperation::OPTION_NONE, + storage::NativeFileUtil::CopyOrMoveModeForDestination(dest_url, true /* copy */)); } @@ -244,7 +248,7 @@ base::File::Error LocalFileUtil::DeleteDirectory( return NativeFileUtil::DeleteDirectory(file_path); } -webkit_blob::ScopedFile LocalFileUtil::CreateSnapshotFile( +storage::ScopedFile LocalFileUtil::CreateSnapshotFile( FileSystemOperationContext* context, const FileSystemURL& url, base::File::Error* error, @@ -255,7 +259,7 @@ webkit_blob::ScopedFile LocalFileUtil::CreateSnapshotFile( *error = GetFileInfo(context, url, file_info, platform_path); if (*error == base::File::FILE_OK && file_info->is_directory) *error = base::File::FILE_ERROR_NOT_A_FILE; - return webkit_blob::ScopedFile(); + return storage::ScopedFile(); } -} // namespace fileapi +} // namespace storage |