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

Unified Diff: webkit/plugins/ppapi/ppb_file_io_impl.cc

Issue 10541113: Notify CloseFile from Pepper to FileSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/plugins/ppapi/ppb_file_io_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_file_io_impl.cc b/webkit/plugins/ppapi/ppb_file_io_impl.cc
index 7fa69bcf7753615260a112dc71c55c1b2dfe55f8..bf23d5e1669e938a196576e23b8d999074bdee63 100644
--- a/webkit/plugins/ppapi/ppb_file_io_impl.cc
+++ b/webkit/plugins/ppapi/ppb_file_io_impl.cc
@@ -205,6 +205,8 @@ void PPB_FileIO_Impl::Close() {
base::FileUtilProxy::Close(
plugin_delegate->GetFileThreadMessageLoopProxy(), file_,
base::FileUtilProxy::StatusCallback());
+ if (!file_system_url_.is_empty())
+ plugin_delegate->AsyncNotifyCloseFileSystemURL(file_system_url_);
kinuko 2012/06/13 06:38:29 It looks like we can call this in Close's callback
kinaba 2012/06/25 11:14:02 Done. The tricky thing here is that in the callbac
file_ = base::kInvalidPlatformFileValue;
quota_file_io_.reset();
}

Powered by Google App Engine
This is Rietveld 408576698