#include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h"
-#include "base/file_util.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
+#include "base/files/file_util.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_security_policy.h"
#include "content/public/browser/render_process_host.h"
#include "extensions/browser/granted_file_entry.h"
#include "extensions/common/permissions/permissions_data.h"
#include "net/base/mime_util.h"
-#include "webkit/browser/fileapi/isolated_context.h"
-#include "webkit/common/fileapi/file_system_mount_option.h"
-#include "webkit/common/fileapi/file_system_types.h"
+#include "storage/browser/fileapi/isolated_context.h"
+#include "storage/common/fileapi/file_system_mount_option.h"
+#include "storage/common/fileapi/file_system_types.h"
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/file_manager/filesystem_api_util.h"
const base::FilePath& path,
bool is_directory) {
GrantedFileEntry result;
- fileapi::IsolatedContext* isolated_context =
- fileapi::IsolatedContext::GetInstance();
+ storage::IsolatedContext* isolated_context =
+ storage::IsolatedContext::GetInstance();
DCHECK(isolated_context);
result.filesystem_id = isolated_context->RegisterFileSystemForPath(
- fileapi::kFileSystemTypeNativeForPlatformApp, std::string(), path,
+ storage::kFileSystemTypeNativeForPlatformApp,
+ std::string(),
+ path,
&result.registered_name);
content::ChildProcessSecurityPolicy* policy =
}
std::string filesystem_id;
- if (!fileapi::CrackIsolatedFileSystemName(filesystem_name, &filesystem_id)) {
+ if (!storage::CrackIsolatedFileSystemName(filesystem_name, &filesystem_id)) {
*error = kInvalidParameters;
return false;
}
return false;
}
- fileapi::IsolatedContext* context = fileapi::IsolatedContext::GetInstance();
+ storage::IsolatedContext* context = storage::IsolatedContext::GetInstance();
base::FilePath relative_path =
base::FilePath::FromUTF8Unsafe(filesystem_path);
base::FilePath virtual_path = context->CreateVirtualRootPath(filesystem_id)
.Append(relative_path);
- fileapi::FileSystemType type;
- fileapi::FileSystemMountOption mount_option;
+ storage::FileSystemType type;
+ storage::FileSystemMountOption mount_option;
std::string cracked_id;
if (!context->CrackVirtualPath(
virtual_path, &filesystem_id, &type, &cracked_id, file_path,
// The file system API is only intended to operate on file entries that
// correspond to a native file, selected by the user so only allow file
// systems returned by the file system API or from a drag and drop operation.
- if (type != fileapi::kFileSystemTypeNativeForPlatformApp &&
- type != fileapi::kFileSystemTypeDragged) {
+ if (type != storage::kFileSystemTypeNativeForPlatformApp &&
+ type != storage::kFileSystemTypeDragged) {
*error = kInvalidParameters;
return false;
}