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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_resource.h

Issue 10386080: Rename nacl::RefCounted to nacl::RefCountedThreadSafe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: License bump Created 8 years, 7 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
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_resource.h
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_resource.h b/ppapi/native_client/src/shared/ppapi_proxy/plugin_resource.h
index 5222127c19c50544f436cb8034f891a8ab7ce886..24ee900f1776d8769034ee08db498e1da9e209cb 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_resource.h
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_resource.h
@@ -29,10 +29,9 @@ namespace ppapi_proxy {
FOR_ALL_RESOURCES(DECLARE_RESOURCE_CLASS)
#undef DECLARE_RESOURCE_CLASS
-class PluginResource : public nacl::RefCounted<PluginResource> {
+class PluginResource : public nacl::RefCountedThreadSafe<PluginResource> {
public:
PluginResource();
- virtual ~PluginResource();
// Returns NULL if the resource is invalid or is a different type.
template<typename T>
@@ -69,9 +68,13 @@ class PluginResource : public nacl::RefCounted<PluginResource> {
template <typename T> T* Cast() { return NULL; }
protected:
+ virtual ~PluginResource();
+
virtual bool InitFromBrowserResource(PP_Resource resource) = 0;
private:
+ friend class nacl::RefCountedThreadSafe<PluginResource>;
+
// Type-specific getters for individual resource types. These will return
// NULL if the resource does not match the specified type. Used by the Cast()
// function.
« no previous file with comments | « ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/proxy_var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698