| Index: content/common/file_system/file_system_dispatcher.cc
|
| ===================================================================
|
| --- content/common/file_system/file_system_dispatcher.cc (revision 79631)
|
| +++ content/common/file_system/file_system_dispatcher.cc (working copy)
|
| @@ -52,8 +52,8 @@
|
| }
|
|
|
| bool FileSystemDispatcher::Move(
|
| - const FilePath& src_path,
|
| - const FilePath& dest_path,
|
| + const GURL& src_path,
|
| + const GURL& dest_path,
|
| fileapi::FileSystemCallbackDispatcher* dispatcher) {
|
| int request_id = dispatchers_.Add(dispatcher);
|
| if (!ChildThread::current()->Send(new FileSystemHostMsg_Move(
|
| @@ -66,8 +66,8 @@
|
| }
|
|
|
| bool FileSystemDispatcher::Copy(
|
| - const FilePath& src_path,
|
| - const FilePath& dest_path,
|
| + const GURL& src_path,
|
| + const GURL& dest_path,
|
| fileapi::FileSystemCallbackDispatcher* dispatcher) {
|
| int request_id = dispatchers_.Add(dispatcher);
|
| if (!ChildThread::current()->Send(new FileSystemHostMsg_Copy(
|
| @@ -80,7 +80,7 @@
|
| }
|
|
|
| bool FileSystemDispatcher::Remove(
|
| - const FilePath& path,
|
| + const GURL& path,
|
| bool recursive,
|
| fileapi::FileSystemCallbackDispatcher* dispatcher) {
|
| int request_id = dispatchers_.Add(dispatcher);
|
| @@ -94,7 +94,7 @@
|
| }
|
|
|
| bool FileSystemDispatcher::ReadMetadata(
|
| - const FilePath& path,
|
| + const GURL& path,
|
| fileapi::FileSystemCallbackDispatcher* dispatcher) {
|
| int request_id = dispatchers_.Add(dispatcher);
|
| if (!ChildThread::current()->Send(
|
| @@ -107,7 +107,7 @@
|
| }
|
|
|
| bool FileSystemDispatcher::Create(
|
| - const FilePath& path,
|
| + const GURL& path,
|
| bool exclusive,
|
| bool is_directory,
|
| bool recursive,
|
| @@ -123,7 +123,7 @@
|
| }
|
|
|
| bool FileSystemDispatcher::Exists(
|
| - const FilePath& path,
|
| + const GURL& path,
|
| bool is_directory,
|
| fileapi::FileSystemCallbackDispatcher* dispatcher) {
|
| int request_id = dispatchers_.Add(dispatcher);
|
| @@ -137,7 +137,7 @@
|
| }
|
|
|
| bool FileSystemDispatcher::ReadDirectory(
|
| - const FilePath& path,
|
| + const GURL& path,
|
| fileapi::FileSystemCallbackDispatcher* dispatcher) {
|
| int request_id = dispatchers_.Add(dispatcher);
|
| if (!ChildThread::current()->Send(
|
| @@ -150,7 +150,7 @@
|
| }
|
|
|
| bool FileSystemDispatcher::Truncate(
|
| - const FilePath& path,
|
| + const GURL& path,
|
| int64 offset,
|
| int* request_id_out,
|
| fileapi::FileSystemCallbackDispatcher* dispatcher) {
|
| @@ -167,7 +167,7 @@
|
| }
|
|
|
| bool FileSystemDispatcher::Write(
|
| - const FilePath& path,
|
| + const GURL& path,
|
| const GURL& blob_url,
|
| int64 offset,
|
| int* request_id_out,
|
| @@ -198,7 +198,7 @@
|
| }
|
|
|
| bool FileSystemDispatcher::TouchFile(
|
| - const FilePath& path,
|
| + const GURL& path,
|
| const base::Time& last_access_time,
|
| const base::Time& last_modified_time,
|
| fileapi::FileSystemCallbackDispatcher* dispatcher) {
|
| @@ -215,12 +215,12 @@
|
|
|
| void FileSystemDispatcher::OnOpenComplete(
|
| int request_id, bool accepted, const std::string& name,
|
| - const FilePath& root_path) {
|
| + const GURL& root) {
|
| fileapi::FileSystemCallbackDispatcher* dispatcher =
|
| dispatchers_.Lookup(request_id);
|
| DCHECK(dispatcher);
|
| if (accepted)
|
| - dispatcher->DidOpenFileSystem(name, root_path);
|
| + dispatcher->DidOpenFileSystem(name, root);
|
| else
|
| dispatcher->DidFail(base::PLATFORM_FILE_ERROR_SECURITY);
|
| dispatchers_.Remove(request_id);
|
|
|