Loading dom/media/webrtc/jsapi/WebrtcGlobalInformation.cpp +8 −7 Original line number Diff line number Diff line Loading @@ -36,10 +36,10 @@ namespace mozilla::dom { typedef nsMainThreadPtrHandle<WebrtcGlobalStatisticsCallback> StatsRequestCallback; using StatsRequestCallback = nsMainThreadPtrHandle<WebrtcGlobalStatisticsCallback>; typedef nsMainThreadPtrHandle<WebrtcGlobalLoggingCallback> LogRequestCallback; using LogRequestCallback = nsMainThreadPtrHandle<WebrtcGlobalLoggingCallback>; class WebrtcContentParents { public: Loading @@ -50,11 +50,12 @@ class WebrtcContentParents { return sContentParents; } private: static std::vector<RefPtr<WebrtcGlobalParent>> sContentParents; WebrtcContentParents() = delete; WebrtcContentParents(const WebrtcContentParents&) = delete; WebrtcContentParents& operator=(const WebrtcContentParents&) = delete; private: static std::vector<RefPtr<WebrtcGlobalParent>> sContentParents; }; std::vector<RefPtr<WebrtcGlobalParent>> WebrtcContentParents::sContentParents; Loading Loading @@ -98,7 +99,7 @@ GetStatsPromiseForThisProcess(const nsAString& aPcIdFilter) { nsTArray<RefPtr<dom::RTCStatsReportPromise>> promises; std::set<nsString> pcids; if (auto ctx = GetPeerConnectionCtx()) { if (auto* ctx = GetPeerConnectionCtx()) { // Grab stats for PCs that still exist ctx->ForEachPeerConnection([&](PeerConnectionImpl* aPc) { if (!aPcIdFilter.IsEmpty() && Loading Loading @@ -159,7 +160,7 @@ static std::map<int32_t, dom::Sequence<nsString>>& GetWebrtcGlobalLogStash() { static void ClearLongTermStats() { GetWebrtcGlobalStatsStash().Clear(); if (auto ctx = GetPeerConnectionCtx()) { if (auto* ctx = GetPeerConnectionCtx()) { ctx->ClearClosedStats(); } } Loading dom/media/webrtc/jsapi/WebrtcGlobalInformation.h +0 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ class WebrtcGlobalInformation { static void StashStats(const RTCStatsReportInternal& aReport); private: WebrtcGlobalInformation() = delete; WebrtcGlobalInformation(const WebrtcGlobalInformation& aOrig) = delete; WebrtcGlobalInformation& operator=(const WebrtcGlobalInformation& aRhs) = Loading Loading
dom/media/webrtc/jsapi/WebrtcGlobalInformation.cpp +8 −7 Original line number Diff line number Diff line Loading @@ -36,10 +36,10 @@ namespace mozilla::dom { typedef nsMainThreadPtrHandle<WebrtcGlobalStatisticsCallback> StatsRequestCallback; using StatsRequestCallback = nsMainThreadPtrHandle<WebrtcGlobalStatisticsCallback>; typedef nsMainThreadPtrHandle<WebrtcGlobalLoggingCallback> LogRequestCallback; using LogRequestCallback = nsMainThreadPtrHandle<WebrtcGlobalLoggingCallback>; class WebrtcContentParents { public: Loading @@ -50,11 +50,12 @@ class WebrtcContentParents { return sContentParents; } private: static std::vector<RefPtr<WebrtcGlobalParent>> sContentParents; WebrtcContentParents() = delete; WebrtcContentParents(const WebrtcContentParents&) = delete; WebrtcContentParents& operator=(const WebrtcContentParents&) = delete; private: static std::vector<RefPtr<WebrtcGlobalParent>> sContentParents; }; std::vector<RefPtr<WebrtcGlobalParent>> WebrtcContentParents::sContentParents; Loading Loading @@ -98,7 +99,7 @@ GetStatsPromiseForThisProcess(const nsAString& aPcIdFilter) { nsTArray<RefPtr<dom::RTCStatsReportPromise>> promises; std::set<nsString> pcids; if (auto ctx = GetPeerConnectionCtx()) { if (auto* ctx = GetPeerConnectionCtx()) { // Grab stats for PCs that still exist ctx->ForEachPeerConnection([&](PeerConnectionImpl* aPc) { if (!aPcIdFilter.IsEmpty() && Loading Loading @@ -159,7 +160,7 @@ static std::map<int32_t, dom::Sequence<nsString>>& GetWebrtcGlobalLogStash() { static void ClearLongTermStats() { GetWebrtcGlobalStatsStash().Clear(); if (auto ctx = GetPeerConnectionCtx()) { if (auto* ctx = GetPeerConnectionCtx()) { ctx->ClearClosedStats(); } } Loading
dom/media/webrtc/jsapi/WebrtcGlobalInformation.h +0 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,6 @@ class WebrtcGlobalInformation { static void StashStats(const RTCStatsReportInternal& aReport); private: WebrtcGlobalInformation() = delete; WebrtcGlobalInformation(const WebrtcGlobalInformation& aOrig) = delete; WebrtcGlobalInformation& operator=(const WebrtcGlobalInformation& aRhs) = Loading