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

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

Issue 2490183002: Filter webrtc::RTCStats by whitelist in surfacing them to Blink. (Closed)
Patch Set: git cl format: {\n} -> {} Created 4 years, 1 month 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
Index: content/renderer/media/webrtc/rtc_stats.h
diff --git a/content/renderer/media/webrtc/rtc_stats.h b/content/renderer/media/webrtc/rtc_stats.h
index 495f2f030ec29e42c57e0792f74e34ec076e906a..7079c0ab2d0910c5fc4d241a738d8d7885e02f82 100644
--- a/content/renderer/media/webrtc/rtc_stats.h
+++ b/content/renderer/media/webrtc/rtc_stats.h
@@ -6,13 +6,14 @@
#define CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_
#include "base/memory/ref_counted.h"
+#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebRTCStats.h"
#include "third_party/webrtc/api/stats/rtcstats.h"
#include "third_party/webrtc/api/stats/rtcstatsreport.h"
namespace content {
-class RTCStatsReport : public blink::WebRTCStatsReport {
+class CONTENT_EXPORT RTCStatsReport : public blink::WebRTCStatsReport {
public:
RTCStatsReport(
const scoped_refptr<const webrtc::RTCStatsReport>& stats_report);
@@ -29,7 +30,7 @@ class RTCStatsReport : public blink::WebRTCStatsReport {
const webrtc::RTCStatsReport::ConstIterator end_;
};
-class RTCStats : public blink::WebRTCStats {
+class CONTENT_EXPORT RTCStats : public blink::WebRTCStats {
public:
RTCStats(const scoped_refptr<const webrtc::RTCStatsReport>& stats_owner,
const webrtc::RTCStats* stats);
@@ -51,7 +52,7 @@ class RTCStats : public blink::WebRTCStats {
const std::vector<const webrtc::RTCStatsMemberInterface*> stats_members_;
};
-class RTCStatsMember : public blink::WebRTCStatsMember {
+class CONTENT_EXPORT RTCStatsMember : public blink::WebRTCStatsMember {
public:
RTCStatsMember(const scoped_refptr<const webrtc::RTCStatsReport>& stats_owner,
const webrtc::RTCStatsMemberInterface* member);
@@ -83,6 +84,8 @@ class RTCStatsMember : public blink::WebRTCStatsMember {
const webrtc::RTCStatsMemberInterface* const member_;
};
+CONTENT_EXPORT void WhitelistStatsForTesting(const char* type);
+
} // namespace content
#endif // CONTENT_RENDERER_MEDIA_WEBRTC_RTC_STATS_H_
« no previous file with comments | « content/renderer/media/rtc_peer_connection_handler_unittest.cc ('k') | content/renderer/media/webrtc/rtc_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698