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/utility | |
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/utility')
-rw-r--r-- | ppapi/utility/threading/simple_thread.cc | 2 | ||||
-rw-r--r-- | ppapi/utility/threading/simple_thread.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ppapi/utility/threading/simple_thread.cc b/ppapi/utility/threading/simple_thread.cc index d0876e9..f17c237 100644 --- a/ppapi/utility/threading/simple_thread.cc +++ b/ppapi/utility/threading/simple_thread.cc @@ -38,7 +38,7 @@ void* RunThread(void* void_data) { } // namespace -SimpleThread::SimpleThread(Instance* instance) +SimpleThread::SimpleThread(const InstanceHandle& instance) : instance_(instance), message_loop_(instance), thread_(0) { diff --git a/ppapi/utility/threading/simple_thread.h b/ppapi/utility/threading/simple_thread.h index a093961..d60a43d 100644 --- a/ppapi/utility/threading/simple_thread.h +++ b/ppapi/utility/threading/simple_thread.h @@ -12,6 +12,7 @@ #endif #include "ppapi/cpp/dev/message_loop_dev.h" +#include "ppapi/cpp/instance_handle.h" namespace pp { @@ -27,7 +28,7 @@ class SimpleThread { typedef void (*ThreadFunc)(MessageLoop_Dev&, void* user_data); - SimpleThread(Instance* instance); + explicit SimpleThread(const InstanceHandle& instance); ~SimpleThread(); // Starts a thread and runs a message loop in it. If you need control over @@ -49,7 +50,7 @@ class SimpleThread { ThreadHandle thread() const { return thread_; } private: - Instance* instance_; + InstanceHandle instance_; MessageLoop_Dev message_loop_; ThreadHandle thread_; |