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

Unified Diff: talk/app/webrtc/statstypes.h

Issue 1235263003: Add thread checker to StatsCollection. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixed #include Created 5 years, 4 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 | talk/app/webrtc/statstypes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/statstypes.h
diff --git a/talk/app/webrtc/statstypes.h b/talk/app/webrtc/statstypes.h
index c58f39058b152b820552d3ad805641de4d4a56cc..156e784acfd04cf06653132092590703781f0e2c 100644
--- a/talk/app/webrtc/statstypes.h
+++ b/talk/app/webrtc/statstypes.h
@@ -43,6 +43,7 @@
#include "webrtc/base/linked_ptr.h"
#include "webrtc/base/scoped_ref_ptr.h"
#include "webrtc/base/stringencode.h"
+#include "webrtc/base/thread_checker.h"
namespace webrtc {
@@ -383,7 +384,6 @@ typedef std::vector<const StatsReport*> StatsReports;
// A map from the report id to the report.
// This class wraps an STL container and provides a limited set of
// functionality in order to keep things simple.
-// TODO(tommi): Use a thread checker here (currently not in libjingle).
class StatsCollection {
public:
StatsCollection();
@@ -409,6 +409,7 @@ class StatsCollection {
private:
Container list_;
+ rtc::ThreadChecker thread_checker_;
};
} // namespace webrtc
« no previous file with comments | « no previous file | talk/app/webrtc/statstypes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698