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

Unified Diff: webkit/chromeos/fileapi/cros_mount_point_provider.h

Issue 12258021: Fix filesystem API file_handlers to work for drive on ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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/chromeos/fileapi/cros_mount_point_provider.h
diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.h b/webkit/chromeos/fileapi/cros_mount_point_provider.h
index 9c9723843ecd54f087bb9e9a766494e8c1034c1b..3d6fedaa95d96be1d44ee39426a32a5211c666b7 100644
--- a/webkit/chromeos/fileapi/cros_mount_point_provider.h
+++ b/webkit/chromeos/fileapi/cros_mount_point_provider.h
@@ -97,11 +97,18 @@ class WEBKIT_STORAGE_EXPORT CrosMountPointProvider
virtual void RevokeAccessForExtension(
const std::string& extension_id) OVERRIDE;
virtual bool GetVirtualPath(const base::FilePath& filesystem_path,
- base::FilePath* virtual_path) OVERRIDE;
+ base::FilePath* virtual_path) const OVERRIDE;
private:
+ // If |original| is isolated filesystem URL, returns filesystem URL with the
+ // same path (as FileSystemURL::path()), but mapped by available external
+ // mount points.
+ // If the original filesystem URL already is external filesystem URL, returns
+ // |original|.
+ fileapi::FileSystemURL GetAsExternalFileSystemURL(
+ const fileapi::FileSystemURL& original) const;
fileapi::RemoteFileSystemProxyInterface* GetRemoteProxy(
- const std::string& mount_name) const;
+ const fileapi::FileSystemURL& url) const;
scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
scoped_ptr<FileAccessPermissions> file_access_permissions_;

Powered by Google App Engine
This is Rietveld 408576698