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

Unified Diff: webkit/fileapi/remote_file_system_proxy.h

Issue 14472008: [FileAPI] Add file open ID and close callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | « webkit/fileapi/local_file_system_operation.cc ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/remote_file_system_proxy.h
diff --git a/webkit/fileapi/remote_file_system_proxy.h b/webkit/fileapi/remote_file_system_proxy.h
index 2d3ba77fa915c4c99838f8317ea9ad4c8e7e172c..b69448857f1cdc2a1f957aa693d4e838d0e0c50b 100644
--- a/webkit/fileapi/remote_file_system_proxy.h
+++ b/webkit/fileapi/remote_file_system_proxy.h
@@ -21,6 +21,13 @@ typedef base::Callback<
class RemoteFileSystemProxyInterface :
public base::RefCountedThreadSafe<RemoteFileSystemProxyInterface> {
public:
+ // Used for OpenFile(). |result| is the return code of the operation.
+ typedef base::Callback<
+ void(base::PlatformFileError result,
+ base::PlatformFile file,
+ base::ProcessHandle peer_handle)> OpenFileCallback;
+
+
// Gets the file or directory info for given|path|.
virtual void GetFileInfo(const FileSystemURL& url,
const FileSystemOperation::GetMetadataCallback& callback) = 0;
@@ -98,7 +105,7 @@ class RemoteFileSystemProxyInterface :
const FileSystemURL& url,
int flags,
base::ProcessHandle peer_handle,
- const FileSystemOperation::OpenFileCallback& callback) = 0;
+ const OpenFileCallback& callback) = 0;
// Notifies that a file opened by OpenFile (at |path|) is closed.
virtual void NotifyCloseFile(const FileSystemURL& url) = 0;
« no previous file with comments | « webkit/fileapi/local_file_system_operation.cc ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698