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

Unified Diff: chrome/browser/file_system/file_system_dispatcher_host.cc

Issue 3208007: Add final part of IPC plumbing for FileSystem API (Closed)
Patch Set: fixing Created 10 years, 4 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: chrome/browser/file_system/file_system_dispatcher_host.cc
diff --git a/chrome/browser/file_system/file_system_dispatcher_host.cc b/chrome/browser/file_system/file_system_dispatcher_host.cc
index 3e23695a5a052eca7d05fac2adce1a3cc5806277..30c72fc37ea8a610b7f32f901d91bcb701c6d5ae 100644
--- a/chrome/browser/file_system/file_system_dispatcher_host.cc
+++ b/chrome/browser/file_system/file_system_dispatcher_host.cc
@@ -46,7 +46,12 @@ bool FileSystemDispatcherHost::OnMessageReceived(
IPC_BEGIN_MESSAGE_MAP_EX(FileSystemDispatcherHost, message, *message_was_ok)
IPC_MESSAGE_HANDLER(ViewHostMsg_OpenFileSystemRequest, OnOpenFileSystem)
IPC_MESSAGE_HANDLER(ViewHostMsg_FileSystem_Move, OnMove)
- // TODO(kinuko): add more.
+ IPC_MESSAGE_HANDLER(ViewHostMsg_FileSystem_Copy, OnCopy)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_FileSystem_Remove, OnRemove)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_FileSystem_ReadMetadata, OnReadMetadata)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_FileSystem_Create, OnCreate)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_FileSystem_Exists, OnExists)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_FileSystem_ReadDirectory, OnReadDirectory)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()
return handled;
@@ -69,8 +74,59 @@ void FileSystemDispatcherHost::OnOpenFileSystem(
void FileSystemDispatcherHost::OnMove(
int request_id, const string16& src_path, const string16& dest_path) {
// TODO(kinuko): not implemented yet.
+ Send(new ViewMsg_FileSystem_DidFail(
+ request_id, WebKit::WebFileErrorAbort));
+}
+
+void FileSystemDispatcherHost::OnCopy(
+ int request_id,
+ const string16& src_path,
+ const string16& dest_path) {
+ // TODO(kinuko): not implemented yet.
+ Send(new ViewMsg_FileSystem_DidFail(
+ request_id, WebKit::WebFileErrorAbort));
+}
- Send(new ViewMsg_FileSystem_Failed(
+void FileSystemDispatcherHost::OnRemove(
+ int request_id,
+ const string16& path) {
+ // TODO(kinuko): not implemented yet.
+ Send(new ViewMsg_FileSystem_DidFail(
+ request_id, WebKit::WebFileErrorAbort));
+}
+
+void FileSystemDispatcherHost::OnReadMetadata(
+ int request_id,
+ const string16& path) {
+ // TODO(kinuko): not implemented yet.
+ Send(new ViewMsg_FileSystem_DidFail(
+ request_id, WebKit::WebFileErrorAbort));
+}
+
+void FileSystemDispatcherHost::OnCreate(
+ int request_id,
+ const string16& path,
+ bool exclusive,
+ bool is_directory) {
+ // TODO(kinuko): not implemented yet.
+ Send(new ViewMsg_FileSystem_DidFail(
+ request_id, WebKit::WebFileErrorAbort));
+}
+
+void FileSystemDispatcherHost::OnExists(
+ int request_id,
+ const string16& path,
+ bool is_directory) {
+ // TODO(kinuko): not implemented yet.
+ Send(new ViewMsg_FileSystem_DidFail(
+ request_id, WebKit::WebFileErrorAbort));
+}
+
+void FileSystemDispatcherHost::OnReadDirectory(
+ int request_id,
+ const string16& path) {
+ // TODO(kinuko): not implemented yet.
+ Send(new ViewMsg_FileSystem_DidFail(
request_id, WebKit::WebFileErrorAbort));
}

Powered by Google App Engine
This is Rietveld 408576698