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

Unified Diff: webkit/fileapi/isolated_mount_point_provider.cc

Issue 10810053: Enables internal filesystem types via Isolated filesystems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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: webkit/fileapi/isolated_mount_point_provider.cc
diff --git a/webkit/fileapi/isolated_mount_point_provider.cc b/webkit/fileapi/isolated_mount_point_provider.cc
index 35cbcf37e4eecf17250468d64bddaa685911b719..4920b91fd1c03f89fce10df1f0caa42ab19b800b 100644
--- a/webkit/fileapi/isolated_mount_point_provider.cc
+++ b/webkit/fileapi/isolated_mount_point_provider.cc
@@ -44,7 +44,8 @@ FilePath GetPathFromURL(const FileSystemURL& url) {
} // namespace
IsolatedMountPointProvider::IsolatedMountPointProvider()
- : isolated_file_util_(new IsolatedFileUtil()) {
+ : isolated_file_util_(new IsolatedFileUtil()),
+ dragged_file_util_(new DraggedFileUtil()) {
}
IsolatedMountPointProvider::~IsolatedMountPointProvider() {
@@ -66,7 +67,7 @@ FilePath IsolatedMountPointProvider::GetFileSystemRootPathOnFileThread(
FileSystemType type,
const FilePath& virtual_path,
bool create) {
- if (create || type != kFileSystemTypeIsolated)
+ if (create)
return FilePath();
std::string fsid;
FilePath path;
@@ -92,8 +93,12 @@ bool IsolatedMountPointProvider::IsRestrictedFileName(
return false;
}
-FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil() {
- return isolated_file_util_.get();
+FileSystemFileUtil* IsolatedMountPointProvider::GetFileUtil(
+ FileSystemType type) {
+ if (type == kFileSystemTypeDragged)
+ return dragged_file_util_.get();
+ else
+ return isolated_file_util_.get();
}
FilePath IsolatedMountPointProvider::GetPathForPermissionsCheck(

Powered by Google App Engine
This is Rietveld 408576698