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

Unified Diff: net/disk_cache/blockfile/trace.h

Issue 2672983004: Make disk_cache::TraceObject RefCountedThreadSafe instead of RefCounted (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/trace.h
diff --git a/net/disk_cache/blockfile/trace.h b/net/disk_cache/blockfile/trace.h
index 1c30dacb0fddb97844713682d97fff06ba17c62b..2cc2fa12ecf47d4ab81535f640b7c8620f6f24e0 100644
--- a/net/disk_cache/blockfile/trace.h
+++ b/net/disk_cache/blockfile/trace.h
@@ -21,8 +21,9 @@ void DestroyTrace(void);
// Simple class to handle the trace buffer lifetime. Any object interested in
// tracing should keep a reference to the object returned by GetTraceObject().
-class TraceObject : public base::RefCounted<TraceObject> {
- friend class base::RefCounted<TraceObject>;
+class TraceObject : public base::RefCountedThreadSafe<TraceObject> {
+ friend class base::RefCountedThreadSafe<TraceObject>;
+
public:
static TraceObject* GetTraceObject();
void EnableTracing(bool enable);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698