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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build 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
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 0b5465195bc22a59fcc9f91f4755056428176763..5de3388f2af700ecd6891b4789c84a2452b62f07 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -620,7 +620,7 @@ void RenderViewHostImpl::DragTargetDragEnter(
// The filenames vector, on the other hand, does represent a capability to
// access the given files.
- fileapi::IsolatedContext::FileInfoSet files;
+ storage::IsolatedContext::FileInfoSet files;
for (std::vector<ui::FileInfo>::iterator iter(
filtered_data.filenames.begin());
iter != filtered_data.filenames.end();
@@ -653,8 +653,8 @@ void RenderViewHostImpl::DragTargetDragEnter(
policy->GrantReadFile(renderer_id, iter->path);
}
- fileapi::IsolatedContext* isolated_context =
- fileapi::IsolatedContext::GetInstance();
+ storage::IsolatedContext* isolated_context =
+ storage::IsolatedContext::GetInstance();
DCHECK(isolated_context);
std::string filesystem_id = isolated_context->RegisterDraggedFileSystem(
files);
@@ -664,12 +664,12 @@ void RenderViewHostImpl::DragTargetDragEnter(
}
filtered_data.filesystem_id = base::UTF8ToUTF16(filesystem_id);
- fileapi::FileSystemContext* file_system_context =
- BrowserContext::GetStoragePartition(
- GetProcess()->GetBrowserContext(),
- GetSiteInstance())->GetFileSystemContext();
+ storage::FileSystemContext* file_system_context =
+ BrowserContext::GetStoragePartition(GetProcess()->GetBrowserContext(),
+ GetSiteInstance())
+ ->GetFileSystemContext();
for (size_t i = 0; i < filtered_data.file_system_files.size(); ++i) {
- fileapi::FileSystemURL file_system_url =
+ storage::FileSystemURL file_system_url =
file_system_context->CrackURL(filtered_data.file_system_files[i].url);
std::string register_name;
@@ -680,11 +680,10 @@ void RenderViewHostImpl::DragTargetDragEnter(
// Note: We are using the origin URL provided by the sender here. It may be
// different from the receiver's.
- filtered_data.file_system_files[i].url = GURL(
- fileapi::GetIsolatedFileSystemRootURIString(
- file_system_url.origin(),
- filesystem_id,
- std::string()).append(register_name));
+ filtered_data.file_system_files[i].url =
+ GURL(storage::GetIsolatedFileSystemRootURIString(
+ file_system_url.origin(), filesystem_id, std::string())
+ .append(register_name));
}
Send(new DragMsg_TargetDragEnter(GetRoutingID(), filtered_data, client_pt,
@@ -1159,13 +1158,13 @@ void RenderViewHostImpl::OnStartDragging(
filtered_data.filenames.push_back(*it);
}
- fileapi::FileSystemContext* file_system_context =
- BrowserContext::GetStoragePartition(
- GetProcess()->GetBrowserContext(),
- GetSiteInstance())->GetFileSystemContext();
+ storage::FileSystemContext* file_system_context =
+ BrowserContext::GetStoragePartition(GetProcess()->GetBrowserContext(),
+ GetSiteInstance())
+ ->GetFileSystemContext();
filtered_data.file_system_files.clear();
for (size_t i = 0; i < drop_data.file_system_files.size(); ++i) {
- fileapi::FileSystemURL file_system_url =
+ storage::FileSystemURL file_system_url =
file_system_context->CrackURL(drop_data.file_system_files[i].url);
if (policy->CanReadFileSystemFile(GetProcess()->GetID(), file_system_url))
filtered_data.file_system_files.push_back(drop_data.file_system_files[i]);

Powered by Google App Engine
This is Rietveld 408576698