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

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: Added DLOG, DCHECK. 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 29826078f070859b70420e67a4315ca4f7f672e8..fee2d228cd19f00a9a4feb9e6678e5ecf5f4c1bb 100644
--- a/webkit/chromeos/fileapi/remote_file_system_operation.cc
+++ b/webkit/chromeos/fileapi/remote_file_system_operation.cc
@@ -170,6 +170,14 @@ void RemoteFileSystemOperation::OpenFile(const GURL& path,
base::Owned(this), callback));
}
+void RemoteFileSystemOperation::NotifyCloseFile(const GURL& path) {
+ DCHECK(SetPendingOperationType(kOperationCloseFile));
+ remote_proxy_->NotifyCloseFile(path);
+ // 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