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( |