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

Unified Diff: content/child/fileapi/file_system_dispatcher.cc

Issue 18282010: Cleanup: split FileSystemDispatcher::Create into CreateFile and CreateDirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « content/child/fileapi/file_system_dispatcher.h ('k') | content/child/fileapi/webfilesystem_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/file_system_dispatcher.cc
diff --git a/content/child/fileapi/file_system_dispatcher.cc b/content/child/fileapi/file_system_dispatcher.cc
index 6642a143ae94d1429cad0c78db8b95ffc34750f4..5c7d7c94e1807b89fc0a13622e1d32e0e326816e 100644
--- a/content/child/fileapi/file_system_dispatcher.cc
+++ b/content/child/fileapi/file_system_dispatcher.cc
@@ -218,15 +218,24 @@ void FileSystemDispatcher::ReadMetadata(
new FileSystemHostMsg_ReadMetadata(request_id, path));
}
-void FileSystemDispatcher::Create(
+void FileSystemDispatcher::CreateFile(
+ const GURL& path,
+ bool exclusive,
+ const StatusCallback& callback) {
+ int request_id = dispatchers_.Add(CallbackDispatcher::Create(callback));
+ ChildThread::current()->Send(new FileSystemHostMsg_Create(
+ request_id, path, exclusive,
+ false /* is_directory */, false /* recursive */));
+}
+
+void FileSystemDispatcher::CreateDirectory(
const GURL& path,
bool exclusive,
- bool is_directory,
bool recursive,
const StatusCallback& callback) {
int request_id = dispatchers_.Add(CallbackDispatcher::Create(callback));
ChildThread::current()->Send(new FileSystemHostMsg_Create(
- request_id, path, exclusive, is_directory, recursive));
+ request_id, path, exclusive, true /* is_directory */, recursive));
}
void FileSystemDispatcher::Exists(
« no previous file with comments | « content/child/fileapi/file_system_dispatcher.h ('k') | content/child/fileapi/webfilesystem_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698