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

Unified Diff: webkit/chromeos/fileapi/remote_file_system_operation.cc

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
Index: webkit/chromeos/fileapi/remote_file_system_operation.cc
diff --git a/webkit/chromeos/fileapi/remote_file_system_operation.cc b/webkit/chromeos/fileapi/remote_file_system_operation.cc
index cfe457e4eabaf016bcb83bd1221f7766d86836d7..f90aae968cc17b5fe96760107ac48fbc1b0ec27d 100644
--- a/webkit/chromeos/fileapi/remote_file_system_operation.cc
+++ b/webkit/chromeos/fileapi/remote_file_system_operation.cc
@@ -176,6 +176,15 @@ void RemoteFileSystemOperation::OpenFile(const FileSystemURL& url,
base::Owned(this), callback));
}
+void RemoteFileSystemOperation::NotifyCloseFile(
+ const fileapi::FileSystemURL& url) {
+ DCHECK(SetPendingOperationType(kOperationCloseFile));
+ remote_proxy_->NotifyCloseFile(url);
+ // Unlike other operations, NotifyCloseFile does not require callback.
+ // So it must be deleted here right now.
+ delete this;
+}
+
fileapi::FileSystemOperation*
RemoteFileSystemOperation::AsFileSystemOperation() {
NOTIMPLEMENTED();
« no previous file with comments | « webkit/chromeos/fileapi/remote_file_system_operation.h ('k') | webkit/chromeos/fileapi/remote_file_system_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698