diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-30 22:30:12 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-30 22:30:12 +0000 |
commit | cd920c2ab434ec474f456f186996c9ace362bf79 (patch) | |
tree | 21ff915da298c6a567cf2a05b674a49c27f6b61b /chrome/browser/file_system | |
parent | f7578f5d14dbd1c2931b7f574ead27cc978ab73a (diff) | |
download | chromium_src-cd920c2ab434ec474f456f186996c9ace362bf79.zip chromium_src-cd920c2ab434ec474f456f186996c9ace362bf79.tar.gz chromium_src-cd920c2ab434ec474f456f186996c9ace362bf79.tar.bz2 |
Revert 57915 - Add final part of IPC plumbing for FileSystem API.
BUG=32277
TEST=none; to be added when we have complete implementation.
Review URL: http://codereview.chromium.org/3208007
TBR=kinuko@chromium.org,phajdan-jr
Review URL: http://codereview.chromium.org/3245010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57923 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/file_system')
-rw-r--r-- | chrome/browser/file_system/file_system_dispatcher_host.cc | 60 | ||||
-rw-r--r-- | chrome/browser/file_system/file_system_dispatcher_host.h | 25 |
2 files changed, 5 insertions, 80 deletions
diff --git a/chrome/browser/file_system/file_system_dispatcher_host.cc b/chrome/browser/file_system/file_system_dispatcher_host.cc index 50a7a3e..d876808 100644 --- a/chrome/browser/file_system/file_system_dispatcher_host.cc +++ b/chrome/browser/file_system/file_system_dispatcher_host.cc @@ -50,12 +50,7 @@ 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) - 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,59 +99,8 @@ void FileSystemDispatcherHost::OnMove( } // 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)); -} -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( + Send(new ViewMsg_FileSystem_Failed( request_id, WebKit::WebFileErrorAbort)); } diff --git a/chrome/browser/file_system/file_system_dispatcher_host.h b/chrome/browser/file_system/file_system_dispatcher_host.h index 320e56a..0f8b63a 100644 --- a/chrome/browser/file_system/file_system_dispatcher_host.h +++ b/chrome/browser/file_system/file_system_dispatcher_host.h @@ -32,28 +32,9 @@ class FileSystemDispatcherHost int request_id, const string16& src_path, const string16& dest_path); - void OnCopy( - int request_id, - const string16& src_path, - const string16& dest_path); - void OnRemove( - int request_id, - const string16& path); - void OnReadMetadata( - int request_id, - const string16& path); - void OnCreate( - int request_id, - const string16& path, - bool exclusive, - bool is_directory); - void OnExists( - int request_id, - const string16& path, - bool is_directory); - void OnReadDirectory( - int request_id, - const string16& path); + + // TODO(kinuko): add more methods. + void Send(IPC::Message* message); private: |