diff options
author | zelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-20 09:05:52 +0000 |
---|---|---|
committer | zelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-20 09:05:52 +0000 |
commit | 24dceafb754bd1b9c80ad5c2c989746dd72705e4 (patch) | |
tree | 1bb0166649e403aa6dc2fd01362be5f3007aedb5 /webkit/fileapi/file_system_mount_point_provider.h | |
parent | af6c3fc4b98a7248c8081275c42b5ffdc621452c (diff) | |
download | chromium_src-24dceafb754bd1b9c80ad5c2c989746dd72705e4.zip chromium_src-24dceafb754bd1b9c80ad5c2c989746dd72705e4.tar.gz chromium_src-24dceafb754bd1b9c80ad5c2c989746dd72705e4.tar.bz2 |
Fixed file/directory url resolution for external mount point provider.
Per Eric's request, refactored FileSystemDirURLRequestJob and FileSystemURLRequestJob classes to resolve local file system through a new operation.
BUG=chromium-os:14225
TEST=added new test cases to FileSystemPathManagerTest.*, added FileSystemOperationTest.TestGetLocalFilePathSuccess
Review URL: http://codereview.chromium.org/6864040
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_mount_point_provider.h')
-rw-r--r-- | webkit/fileapi/file_system_mount_point_provider.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/fileapi/file_system_mount_point_provider.h b/webkit/fileapi/file_system_mount_point_provider.h index e331991..50e0d39 100644 --- a/webkit/fileapi/file_system_mount_point_provider.h +++ b/webkit/fileapi/file_system_mount_point_provider.h @@ -29,7 +29,7 @@ class FileSystemMountPointProvider { // Retrieves the root path for the given |origin_url| and |type|, and // calls the given |callback| with the root path and name. // If |create| is true this also creates the directory if it doesn't exist. - virtual void GetFileSystemRootPath( + virtual void ValidateFileSystemRootAndGetURL( const GURL& origin_url, FileSystemType type, bool create, @@ -37,7 +37,7 @@ class FileSystemMountPointProvider { // Like GetFileSystemRootPath, but synchronous, and can be called only while // running on the file thread. - virtual FilePath GetFileSystemRootPathOnFileThread( + virtual FilePath ValidateFileSystemRootAndGetPathOnFileThread( const GURL& origin_url, FileSystemType type, const FilePath& virtual_path, @@ -67,6 +67,10 @@ class ExternalFileSystemMountPointProvider // Revoke file access from extension identified with |extension_id|. virtual void RevokeAccessForExtension( const std::string& extension_id) = 0; + // Adds a new mount point. + virtual void AddMountPoint(FilePath mount_point) = 0; + // Remove a mount point. + virtual void RemoveMountPoint(FilePath mount_point) = 0; }; } // namespace fileapi |