summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/file_system_operation.h
diff options
context:
space:
mode:
authorzelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 09:05:52 +0000
committerzelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 09:05:52 +0000
commit24dceafb754bd1b9c80ad5c2c989746dd72705e4 (patch)
tree1bb0166649e403aa6dc2fd01362be5f3007aedb5 /webkit/fileapi/file_system_operation.h
parentaf6c3fc4b98a7248c8081275c42b5ffdc621452c (diff)
downloadchromium_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_operation.h')
-rw-r--r--webkit/fileapi/file_system_operation.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/fileapi/file_system_operation.h b/webkit/fileapi/file_system_operation.h
index c726403..654b596 100644
--- a/webkit/fileapi/file_system_operation.h
+++ b/webkit/fileapi/file_system_operation.h
@@ -84,6 +84,7 @@ class FileSystemOperation {
const GURL& path,
int file_flags,
base::ProcessHandle peer_handle);
+ void GetLocalPath(const GURL& path);
// Try to cancel the current operation [we support cancelling write or
// truncate only]. Report failure for the current operation, then tell the
@@ -138,6 +139,8 @@ class FileSystemOperation {
base::PlatformFileError rv,
base::PassPlatformFile file,
bool created);
+ void DidGetLocalPath(base::PlatformFileError rv,
+ const FilePath& local_path);
// Helper for Write().
void OnFileOpenedForWrite(
@@ -194,6 +197,7 @@ class FileSystemOperation {
kOperationTruncate,
kOperationTouchFile,
kOperationOpenFile,
+ kOperationGetLocalPath,
kOperationCancel,
};