Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1131)

Unified Diff: extensions/renderer/file_system_natives.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/DEPS ('k') | extensions/shell/browser/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/file_system_natives.cc
diff --git a/extensions/renderer/file_system_natives.cc b/extensions/renderer/file_system_natives.cc
index 847e7a8656fd819b097e022c899fa73c50246303..84ba4be078c0a95e4c5200163f6497171b0d41e0 100644
--- a/extensions/renderer/file_system_natives.cc
+++ b/extensions/renderer/file_system_natives.cc
@@ -12,8 +12,8 @@
#include "third_party/WebKit/public/web/WebDOMError.h"
#include "third_party/WebKit/public/web/WebDOMFileSystem.h"
#include "third_party/WebKit/public/web/WebLocalFrame.h"
-#include "webkit/common/fileapi/file_system_types.h"
-#include "webkit/common/fileapi/file_system_util.h"
+#include "storage/common/fileapi/file_system_types.h"
+#include "storage/common/fileapi/file_system_util.h"
namespace extensions {
@@ -46,7 +46,7 @@ void FileSystemNatives::GetIsolatedFileSystem(
extensions::ScriptContext::GetDataSourceURLForFrame(webframe);
CHECK(context_url.SchemeIs(extensions::kExtensionScheme));
- std::string name(fileapi::GetIsolatedFileSystemName(context_url.GetOrigin(),
+ std::string name(storage::GetIsolatedFileSystemName(context_url.GetOrigin(),
file_system_id));
// The optional second argument is the subfolder within the isolated file
@@ -57,7 +57,7 @@ void FileSystemNatives::GetIsolatedFileSystem(
optional_root_name = *v8::String::Utf8Value(args[1]);
}
- GURL root_url(fileapi::GetIsolatedFileSystemRootURIString(
+ GURL root_url(storage::GetIsolatedFileSystemRootURIString(
context_url.GetOrigin(), file_system_id, optional_root_name));
args.GetReturnValue().Set(
@@ -74,7 +74,7 @@ void FileSystemNatives::GetFileEntry(
DCHECK(args[0]->IsString());
std::string type_string = *v8::String::Utf8Value(args[0]->ToString());
blink::WebFileSystemType type;
- bool is_valid_type = fileapi::GetFileSystemPublicType(type_string, &type);
+ bool is_valid_type = storage::GetFileSystemPublicType(type_string, &type);
DCHECK(is_valid_type);
if (is_valid_type == false) {
return;
@@ -87,7 +87,7 @@ void FileSystemNatives::GetFileEntry(
GURL file_system_root_url(*v8::String::Utf8Value(args[2]->ToString()));
std::string file_path_string(*v8::String::Utf8Value(args[3]->ToString()));
base::FilePath file_path = base::FilePath::FromUTF8Unsafe(file_path_string);
- DCHECK(fileapi::VirtualPath::IsAbsolute(file_path.value()));
+ DCHECK(storage::VirtualPath::IsAbsolute(file_path.value()));
DCHECK(args[4]->IsBoolean());
blink::WebDOMFileSystem::EntryType entry_type =
@@ -115,7 +115,7 @@ void FileSystemNatives::CrackIsolatedFileSystemName(
DCHECK(args[0]->IsString());
std::string filesystem_name = *v8::String::Utf8Value(args[0]->ToString());
std::string filesystem_id;
- if (!fileapi::CrackIsolatedFileSystemName(filesystem_name, &filesystem_id))
+ if (!storage::CrackIsolatedFileSystemName(filesystem_name, &filesystem_id))
return;
args.GetReturnValue().Set(v8::String::NewFromUtf8(args.GetIsolate(),
« no previous file with comments | « extensions/renderer/DEPS ('k') | extensions/shell/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698