diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-27 20:23:19 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-27 20:23:19 +0000 |
commit | 09af0f7661d6a5971804c9a8ec47bbd038a5de78 (patch) | |
tree | f2c56e46b629df59a3a1781ac54a7d43d170ea31 /ppapi/cpp/file_system.cc | |
parent | 7e26ac973ede2fd0576d40086a437a3177668ea1 (diff) | |
download | chromium_src-09af0f7661d6a5971804c9a8ec47bbd038a5de78.zip chromium_src-09af0f7661d6a5971804c9a8ec47bbd038a5de78.tar.gz chromium_src-09af0f7661d6a5971804c9a8ec47bbd038a5de78.tar.bz2 |
Convert resources to take an instance key instead of an Instance*.
Review URL: https://chromiumcodereview.appspot.com/9381010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123795 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/file_system.cc')
-rw-r--r-- | ppapi/cpp/file_system.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ppapi/cpp/file_system.cc b/ppapi/cpp/file_system.cc index 8499dfd..1f2aaa6 100644 --- a/ppapi/cpp/file_system.cc +++ b/ppapi/cpp/file_system.cc @@ -8,6 +8,7 @@ #include "ppapi/c/ppb_file_system.h" #include "ppapi/cpp/completion_callback.h" #include "ppapi/cpp/file_ref.h" +#include "ppapi/cpp/instance_handle.h" #include "ppapi/cpp/module.h" #include "ppapi/cpp/module_impl.h" @@ -24,12 +25,12 @@ template <> const char* interface_name<PPB_FileSystem>() { FileSystem::FileSystem() { } -FileSystem::FileSystem(Instance* instance, +FileSystem::FileSystem(const InstanceHandle& instance, PP_FileSystemType type) { if (!has_interface<PPB_FileSystem>()) return; PassRefFromConstructor(get_interface<PPB_FileSystem>()->Create( - instance->pp_instance(), type)); + instance.pp_instance(), type)); } int32_t FileSystem::Open(int64_t expected_size, |