| Index: webkit/fileapi/sandbox_mount_point_provider.cc
|
| diff --git a/webkit/fileapi/sandbox_mount_point_provider.cc b/webkit/fileapi/sandbox_mount_point_provider.cc
|
| index dbef6c315307620fc222b286809a3706d250f4ad..6e82af0ed1007246016446744f303f087810802a 100644
|
| --- a/webkit/fileapi/sandbox_mount_point_provider.cc
|
| +++ b/webkit/fileapi/sandbox_mount_point_provider.cc
|
| @@ -20,8 +20,7 @@
|
| #include "webkit/fileapi/file_system_types.h"
|
| #include "webkit/fileapi/file_system_usage_cache.h"
|
| #include "webkit/fileapi/file_system_util.h"
|
| -#include "webkit/fileapi/local_file_system_file_util.h"
|
| -#include "webkit/fileapi/obfuscated_file_system_file_util.h"
|
| +#include "webkit/fileapi/obfuscated_file_util.h"
|
| #include "webkit/fileapi/quota_file_util.h"
|
| #include "webkit/fileapi/sandbox_mount_point_provider.h"
|
| #include "webkit/glue/webkit_glue.h"
|
| @@ -97,7 +96,7 @@ class ObfuscatedOriginEnumerator
|
| : public fileapi::SandboxMountPointProvider::OriginEnumerator {
|
| public:
|
| explicit ObfuscatedOriginEnumerator(
|
| - fileapi::ObfuscatedFileSystemFileUtil* file_util) {
|
| + fileapi::ObfuscatedFileUtil* file_util) {
|
| enum_.reset(file_util->CreateOriginEnumerator());
|
| }
|
| virtual ~ObfuscatedOriginEnumerator() {}
|
| @@ -111,8 +110,7 @@ class ObfuscatedOriginEnumerator
|
| }
|
|
|
| private:
|
| - scoped_ptr<fileapi::ObfuscatedFileSystemFileUtil::AbstractOriginEnumerator>
|
| - enum_;
|
| + scoped_ptr<fileapi::ObfuscatedFileUtil::AbstractOriginEnumerator> enum_;
|
| };
|
|
|
| class OldSandboxOriginEnumerator
|
| @@ -173,7 +171,7 @@ FilePath OldGetBaseDirectoryForOriginAndType(
|
| }
|
|
|
| bool MigrateOneOldFileSystem(
|
| - fileapi::ObfuscatedFileSystemFileUtil* file_util,
|
| + fileapi::ObfuscatedFileUtil* file_util,
|
| const FilePath& old_base_path, const GURL& origin,
|
| fileapi::FileSystemType type) {
|
| FilePath base_path = OldGetBaseDirectoryForOriginAndType(
|
| @@ -202,7 +200,7 @@ bool MigrateOneOldFileSystem(
|
| }
|
|
|
| void MigrateAllOldFileSystems(
|
| - fileapi::ObfuscatedFileSystemFileUtil* file_util,
|
| + fileapi::ObfuscatedFileUtil* file_util,
|
| const FilePath& old_base_path) {
|
| scoped_ptr<OldSandboxOriginEnumerator> old_origins(
|
| new OldSandboxOriginEnumerator(old_base_path));
|
| @@ -251,7 +249,7 @@ void MigrateAllOldFileSystems(
|
| // to look up the filesystem's root, so we can take care of most of them by
|
| // putting a check there.
|
| void MigrateIfNeeded(
|
| - fileapi::ObfuscatedFileSystemFileUtil* file_util,
|
| + fileapi::ObfuscatedFileUtil* file_util,
|
| const FilePath& old_base_path) {
|
| if (file_util::DirectoryExists(old_base_path))
|
| MigrateAllOldFileSystems(file_util, old_base_path);
|
| @@ -280,7 +278,7 @@ SandboxMountPointProvider::SandboxMountPointProvider(
|
| file_message_loop_(file_message_loop),
|
| profile_path_(profile_path),
|
| sandbox_file_util_(
|
| - new ObfuscatedFileSystemFileUtil(
|
| + new ObfuscatedFileUtil(
|
| profile_path.Append(kNewFileSystemDirectory),
|
| QuotaFileUtil::CreateDefault())) {
|
| }
|
| @@ -307,7 +305,7 @@ class SandboxMountPointProvider::GetFileSystemRootPathTask
|
| scoped_refptr<base::MessageLoopProxy> file_message_loop,
|
| const GURL& origin_url,
|
| FileSystemType type,
|
| - ObfuscatedFileSystemFileUtil* file_util,
|
| + ObfuscatedFileUtil* file_util,
|
| const FilePath& old_base_path,
|
| FileSystemPathManager::GetRootPathCallback* callback)
|
| : file_message_loop_(file_message_loop),
|
| @@ -361,7 +359,7 @@ class SandboxMountPointProvider::GetFileSystemRootPathTask
|
| scoped_refptr<base::MessageLoopProxy> origin_message_loop_proxy_;
|
| GURL origin_url_;
|
| FileSystemType type_;
|
| - scoped_refptr<ObfuscatedFileSystemFileUtil> file_util_;
|
| + scoped_refptr<ObfuscatedFileUtil> file_util_;
|
| FilePath old_base_path_;
|
| scoped_ptr<FileSystemPathManager::GetRootPathCallback> callback_;
|
| };
|
| @@ -562,7 +560,7 @@ int64 SandboxMountPointProvider::GetOriginUsageOnFileThread(
|
| else
|
| usage += file_info.size;
|
| }
|
| - usage += ObfuscatedFileSystemFileUtil::ComputeFilePathCost(file_path_each);
|
| + usage += ObfuscatedFileUtil::ComputeFilePathCost(file_path_each);
|
| }
|
| // This clears the dirty flag too.
|
| FileSystemUsageCache::UpdateUsage(usage_file_path, usage);
|
| @@ -619,7 +617,7 @@ void SandboxMountPointProvider::EndUpdateOriginOnFileThread(
|
| FileSystemUsageCache::DecrementDirty(usage_file_path);
|
| }
|
|
|
| -FileSystemFileUtil* SandboxMountPointProvider::GetFileSystemFileUtil() {
|
| +FileSystemFileUtil* SandboxMountPointProvider::GetFileUtil() {
|
| return sandbox_file_util_.get();
|
| }
|
|
|
|
|