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

Unified Diff: trunk/src/content/child/fileapi/file_system_dispatcher.cc

Issue 60323002: Revert 232547 "Pepper: Move FileIO host from renderer to browser." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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: trunk/src/content/child/fileapi/file_system_dispatcher.cc
===================================================================
--- trunk/src/content/child/fileapi/file_system_dispatcher.cc (revision 233010)
+++ trunk/src/content/child/fileapi/file_system_dispatcher.cc (working copy)
@@ -351,6 +351,23 @@
request_id, path, last_access_time, last_modified_time));
}
+void FileSystemDispatcher::OpenPepperFile(
+ const GURL& file_path,
+ int pp_open_flags,
+ const OpenFileCallback& success_callback,
+ const StatusCallback& error_callback) {
+ int request_id = dispatchers_.Add(
+ CallbackDispatcher::Create(success_callback, error_callback));
+ ChildThread::current()->Send(
+ new FileSystemHostMsg_OpenPepperFile(
+ request_id, file_path, pp_open_flags));
+}
+
+void FileSystemDispatcher::NotifyCloseFile(int file_open_id) {
+ ChildThread::current()->Send(
+ new FileSystemHostMsg_NotifyCloseFile(file_open_id));
+}
+
void FileSystemDispatcher::CreateSnapshotFile(
const GURL& file_path,
const CreateSnapshotFileCallback& success_callback,
« no previous file with comments | « trunk/src/content/child/fileapi/file_system_dispatcher.h ('k') | trunk/src/content/common/fileapi/file_system_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698