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

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

Issue 3245010: Revert 57915 - Add final part of IPC plumbing for FileSystem API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/browser/file_system/file_system_dispatcher_host.h ('k') | chrome/common/common_param_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chrome/browser/file_system/file_system_dispatcher_host.h ('k') | chrome/common/common_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698