Index: base/ref_counted.h |
=================================================================== |
--- base/ref_counted.h (revision 27287) |
+++ base/ref_counted.h (working copy) |
@@ -14,6 +14,8 @@ |
class RefCountedBase { |
public: |
+ static bool ImplementsThreadSafeReferenceCounting() { return false; } |
+ |
bool HasOneRef() const { return ref_count_ == 1; } |
protected: |
@@ -38,6 +40,8 @@ |
class RefCountedThreadSafeBase { |
public: |
+ static bool ImplementsThreadSafeReferenceCounting() { return true; } |
+ |
bool HasOneRef() const; |
protected: |