| Index: chrome/browser/file_system/file_system_dispatcher_host.cc
|
| ===================================================================
|
| --- chrome/browser/file_system/file_system_dispatcher_host.cc (revision 57922)
|
| +++ chrome/browser/file_system/file_system_dispatcher_host.cc (working copy)
|
| @@ -50,12 +50,7 @@
|
| IPC_BEGIN_MESSAGE_MAP_EX(FileSystemDispatcherHost, message, *message_was_ok)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_OpenFileSystemRequest, OnOpenFileSystem)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_FileSystem_Move, OnMove)
|
| - 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)
|
| + // TODO(kinuko): add more.
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP_EX()
|
| return handled;
|
| @@ -104,62 +99,11 @@
|
| }
|
|
|
| // 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(
|
| + Send(new ViewMsg_FileSystem_Failed(
|
| request_id, WebKit::WebFileErrorAbort));
|
| }
|
|
|
| -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));
|
| -}
|
| -
|
| void FileSystemDispatcherHost::Send(IPC::Message* message) {
|
| if (!ChromeThread::CurrentlyOn(ChromeThread::IO)) {
|
| if (!ChromeThread::PostTask(
|
|
|