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

Unified Diff: webkit/plugins/ppapi/ppb_file_io_impl.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/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppb_file_io_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_file_io_impl.h
diff --git a/webkit/plugins/ppapi/ppb_file_io_impl.h b/webkit/plugins/ppapi/ppb_file_io_impl.h
index 2298d87c5fe11c03f5af360d6a6cab721b32b831..52d1105046b1c2d854a6a84312331830c40cf8ae 100644
--- a/webkit/plugins/ppapi/ppb_file_io_impl.h
+++ b/webkit/plugins/ppapi/ppb_file_io_impl.h
@@ -74,6 +74,10 @@ class PPB_FileIO_Impl : public ::ppapi::PPB_FileIO_Shared {
void ExecutePlatformGeneralCallback(base::PlatformFileError error_code);
void ExecutePlatformOpenFileCallback(base::PlatformFileError error_code,
base::PassPlatformFile file);
+ void ExecutePlatformOpenFileSystemURLCallback(
+ base::PlatformFileError error_code,
+ base::PassPlatformFile file,
+ const PluginDelegate::NotifyCloseFileCallback& callback);
void ExecutePlatformQueryCallback(base::PlatformFileError error_code,
const base::PlatformFileInfo& file_info);
void ExecutePlatformReadCallback(base::PlatformFileError error_code,
@@ -88,6 +92,9 @@ class PPB_FileIO_Impl : public ::ppapi::PPB_FileIO_Shared {
// Valid only for PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY}.
GURL file_system_url_;
+ // Callback function for notifying when the file handle is closed.
+ PluginDelegate::NotifyCloseFileCallback notify_close_file_callback_;
+
// Pointer to a QuotaFileIO instance, which is valid only while a file
// of type PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY} is opened.
scoped_ptr<QuotaFileIO> quota_file_io_;
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppb_file_io_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698