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

Unified Diff: net/base/load_log.h

Issue 347021: Make LoadLog refcounted-thread safe.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address timurrr's comment change Created 11 years, 2 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 | « net/base/host_resolver_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/load_log.h
===================================================================
--- net/base/load_log.h (revision 30488)
+++ net/base/load_log.h (working copy)
@@ -14,7 +14,10 @@
// LoadLog stores profiling information on where time was spent while servicing
// a request (waiting in queues, resolving hosts, resolving proxy, etc...).
-class LoadLog : public base::RefCounted<LoadLog> {
+//
+// Note that LoadLog is NOT THREADSAFE, however it is RefCountedThreadSafe so
+// that it can be AddRef() / Release() across threads.
+class LoadLog : public base::RefCountedThreadSafe<LoadLog> {
public:
enum EventType {
« no previous file with comments | « net/base/host_resolver_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698