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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/proxy_var.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/proxy_var.h
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/proxy_var.h b/ppapi/native_client/src/shared/ppapi_proxy/proxy_var.h
index f5700e6335cf2a25d9059c2ff7c7bb69548cab60..00a55b19729aedc06e7b88c9a1d9c6608fc3c6b9 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/proxy_var.h
+++ b/ppapi/native_client/src/shared/ppapi_proxy/proxy_var.h
@@ -19,7 +19,7 @@ namespace ppapi_proxy {
//
// Note: this class is intended to be sub-classed to handle specific content
// types such as strings, dictionaries, or arrays.
-class ProxyVar : public nacl::RefCounted<ProxyVar> {
+class ProxyVar : public nacl::RefCountedThreadSafe<ProxyVar> {
public:
// The type of this cached object. Simple types (int, bool, etc.) are not
// cached.
@@ -38,15 +38,16 @@ class ProxyVar : public nacl::RefCounted<ProxyVar> {
virtual ~ProxyVar() {}
private:
- friend class nacl::RefCounted<ProxyVar>;
+ friend class nacl::RefCountedThreadSafe<ProxyVar>;
+
PP_VarType pp_var_type_;
int64_t id_;
- ProxyVar(); // Not implemented - do not use.
- NACL_DISALLOW_COPY_AND_ASSIGN(ProxyVar);
-
// A counter for unique ids.
static int64_t unique_var_id;
+
+ ProxyVar(); // Not implemented - do not use.
+ NACL_DISALLOW_COPY_AND_ASSIGN(ProxyVar);
};
typedef scoped_refptr<ProxyVar> SharedProxyVar;

Powered by Google App Engine
This is Rietveld 408576698