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/dev/selection_dev.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/dev/selection_dev.cc')
-rw-r--r-- | ppapi/cpp/dev/selection_dev.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ppapi/cpp/dev/selection_dev.cc b/ppapi/cpp/dev/selection_dev.cc index b086ac1..37bbbeb 100644 --- a/ppapi/cpp/dev/selection_dev.cc +++ b/ppapi/cpp/dev/selection_dev.cc @@ -5,6 +5,7 @@ #include "ppapi/cpp/dev/selection_dev.h" #include "ppapi/cpp/instance.h" +#include "ppapi/cpp/instance_handle.h" #include "ppapi/cpp/module.h" #include "ppapi/cpp/var.h" @@ -29,14 +30,15 @@ const PPP_Selection_Dev ppp_selection = { } // namespace -Selection_Dev::Selection_Dev(Instance* instance) +Selection_Dev::Selection_Dev(const InstanceHandle& instance) : associated_instance_(instance) { - pp::Module::Get()->AddPluginInterface(kPPPSelectionInterface, &ppp_selection); - associated_instance_->AddPerInstanceObject(kPPPSelectionInterface, this); + Module::Get()->AddPluginInterface(kPPPSelectionInterface, &ppp_selection); + Instance::AddPerInstanceObject(instance, kPPPSelectionInterface, this); } Selection_Dev::~Selection_Dev() { - associated_instance_->RemovePerInstanceObject(kPPPSelectionInterface, this); + Instance::RemovePerInstanceObject(associated_instance_, + kPPPSelectionInterface, this); } } // namespace pp |