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

Unified Diff: content/common/file_system/file_system_dispatcher.cc

Issue 6833007: More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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: content/common/file_system/file_system_dispatcher.cc
===================================================================
--- content/common/file_system/file_system_dispatcher.cc (revision 81454)
+++ 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);
« no previous file with comments | « content/common/file_system/file_system_dispatcher.h ('k') | content/common/file_system/webfilesystem_callback_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698