diff options
author | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 18:11:13 +0000 |
---|---|---|
committer | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-25 18:11:13 +0000 |
commit | 4837a98696485a8e07b1e4ad742a60ab02c73f08 (patch) | |
tree | 1eb1466622008a825ab6b07877bad835682441b9 /ppapi/proxy/file_io_resource.h | |
parent | d57a7db463e142db2937bbe8f71ad514ca0e88ac (diff) | |
download | chromium_src-4837a98696485a8e07b1e4ad742a60ab02c73f08.zip chromium_src-4837a98696485a8e07b1e4ad742a60ab02c73f08.tar.gz chromium_src-4837a98696485a8e07b1e4ad742a60ab02c73f08.tar.bz2 |
Pepper: Create FileSystemOperationRunner in FileSystemHost.
This change adds a FileSystemOperationRunner to FileSystemHost
to be shared by all FileIOHosts within that file system.
FileIOResource now holds a reference to the FileSystemResource
to guarantee that the FileSystemHost isn't destroyed.
FileRefHost now provides GetFileSystemHost so FileIOHost can
get a weak reference to it.
This change is in preparation for future CLs where quota is
managed per file system.
BUG=194304
Review URL: https://codereview.chromium.org/83043007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237100 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/file_io_resource.h')
-rw-r--r-- | ppapi/proxy/file_io_resource.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ppapi/proxy/file_io_resource.h b/ppapi/proxy/file_io_resource.h index 5fc6370..ee19848 100644 --- a/ppapi/proxy/file_io_resource.h +++ b/ppapi/proxy/file_io_resource.h @@ -15,6 +15,7 @@ #include "ppapi/proxy/ppapi_proxy_export.h" #include "ppapi/shared_impl/file_io_state_manager.h" #include "ppapi/shared_impl/resource.h" +#include "ppapi/shared_impl/scoped_pp_resource.h" #include "ppapi/thunk/ppb_file_io_api.h" namespace ppapi { @@ -163,6 +164,7 @@ class PPAPI_PROXY_EXPORT FileIOResource scoped_refptr<FileHandleHolder> file_handle_; PP_FileSystemType file_system_type_; + ScopedPPResource file_system_resource_; FileIOStateManager state_manager_; scoped_refptr<Resource> file_ref_; |