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

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, 6 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 d481f053736800be67a804a089439fa2aadba589..1be76479c80cd4d5ff0ce1e88ed38fe4f771d07b 100644
--- a/webkit/chromeos/fileapi/remote_file_system_operation.cc
+++ b/webkit/chromeos/fileapi/remote_file_system_operation.cc
@@ -173,6 +173,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();

Powered by Google App Engine
This is Rietveld 408576698