| 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));
|
| }
|
|
|
|
|