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

Unified Diff: webkit/fileapi/file_system_operation_interface.h

Issue 10541113: Notify CloseFile from Pepper to FileSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 5 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/file_system_operation.cc ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_operation_interface.h
diff --git a/webkit/fileapi/file_system_operation_interface.h b/webkit/fileapi/file_system_operation_interface.h
index 5a0897032d224e4ecda67f46f27c8f78acfc20c7..9196f96f7020b18fc8edf7d57dae87453843271e 100644
--- a/webkit/fileapi/file_system_operation_interface.h
+++ b/webkit/fileapi/file_system_operation_interface.h
@@ -226,6 +226,13 @@ class FileSystemOperationInterface {
base::ProcessHandle peer_handle,
const OpenFileCallback& callback) = 0;
+ // Notifies a file at |path| opened by OpenFile is closed in plugin process.
+ // File system will run some cleanup task such as uploading the modified file
+ // content to a remote storage.
+ //
+ // This function is used only by Pepper as of writing.
+ virtual void NotifyCloseFile(const FileSystemURL& path) = 0;
+
// For downcasting to FileSystemOperation.
// TODO(kinuko): this hack should go away once appropriate upload-stream
// handling based on element types is supported.
@@ -260,6 +267,7 @@ class FileSystemOperationInterface {
kOperationTruncate,
kOperationTouchFile,
kOperationOpenFile,
+ kOperationCloseFile,
kOperationGetLocalPath,
kOperationCancel,
};
« no previous file with comments | « webkit/fileapi/file_system_operation.cc ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698