mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1829452 - fix lints in WebrtcGlobalInformation;r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D176209
This commit is contained in:
parent
615e96ac30
commit
55755e473d
@ -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:
|
||||
@ -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;
|
||||
@ -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() &&
|
||||
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user