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

Unified Diff: content/renderer/media/webrtc/media_stream_track_metrics.h

Issue 2913693003: Replace deprecated base::NonThreadSafe in content/renderer/media/webrtc in favor of SequenceChecker. (Closed)
Patch Set: move media_stream_remote_video_source.cc to https://codereview.chromium.org/2909103002/ Created 3 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
« no previous file with comments | « no previous file | content/renderer/media/webrtc/media_stream_track_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webrtc/media_stream_track_metrics.h
diff --git a/content/renderer/media/webrtc/media_stream_track_metrics.h b/content/renderer/media/webrtc/media_stream_track_metrics.h
index 18287f399de542f839e067575f7ce975e7baeed6..1a09b4eee347e0054db4e7d2a18e018d2a744c3e 100644
--- a/content/renderer/media/webrtc/media_stream_track_metrics.h
+++ b/content/renderer/media/webrtc/media_stream_track_metrics.h
@@ -10,7 +10,7 @@
#include <memory>
#include <vector>
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "content/common/content_export.h"
#include "third_party/webrtc/api/peerconnectioninterface.h"
@@ -30,7 +30,7 @@ class RTCPeerConnectionHandler;
// There should be exactly one of these objects owned by each
// RTCPeerConnectionHandler, and its lifetime should match the
// lifetime of its owner.
-class CONTENT_EXPORT MediaStreamTrackMetrics : public base::NonThreadSafe {
+class CONTENT_EXPORT MediaStreamTrackMetrics {
public:
explicit MediaStreamTrackMetrics();
~MediaStreamTrackMetrics();
@@ -98,6 +98,8 @@ class CONTENT_EXPORT MediaStreamTrackMetrics : public base::NonThreadSafe {
webrtc::PeerConnectionInterface::IceConnectionState ice_state_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(MediaStreamTrackMetrics);
};
« no previous file with comments | « no previous file | content/renderer/media/webrtc/media_stream_track_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698