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

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

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.h
===================================================================
--- trunk/src/content/child/fileapi/file_system_dispatcher.h (revision 233010)
+++ trunk/src/content/child/fileapi/file_system_dispatcher.h (working copy)
@@ -126,6 +126,16 @@
const base::Time& last_modified_time,
const StatusCallback& callback);
+ // This returns a raw open PlatformFile, unlike the above, which are
+ // self-contained operations.
+ void OpenPepperFile(const GURL& file_path,
+ int pp_open_flags,
+ const OpenFileCallback& success_callback,
+ const StatusCallback& error_callback);
+ // This must be paired with OpenFile, and called after finished using the
+ // raw PlatformFile returned from OpenFile.
+ void NotifyCloseFile(int file_open_id);
+
// The caller must send FileSystemHostMsg_DidReceiveSnapshot message
// with |request_id| passed to |success_callback| after the snapshot file
// is successfully received.

Powered by Google App Engine
This is Rietveld 408576698