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

Unified Diff: ppapi/utility/threading/simple_thread.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 10 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 | « ppapi/tests/test_websocket.cc ('k') | ppapi/utility/threading/simple_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/utility/threading/simple_thread.h
diff --git a/ppapi/utility/threading/simple_thread.h b/ppapi/utility/threading/simple_thread.h
index a093961bf539fbe45715035969bd51351dc83ab1..d60a43d1fb4d165f978a0f526462569ef62cbc9c 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_;
« no previous file with comments | « ppapi/tests/test_websocket.cc ('k') | ppapi/utility/threading/simple_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698