From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- netwerk/base/NetworkConnectivityService.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'netwerk/base/NetworkConnectivityService.h') diff --git a/netwerk/base/NetworkConnectivityService.h b/netwerk/base/NetworkConnectivityService.h index 6315fb192b..b29825d5d5 100644 --- a/netwerk/base/NetworkConnectivityService.h +++ b/netwerk/base/NetworkConnectivityService.h @@ -33,7 +33,7 @@ class NetworkConnectivityService : public nsINetworkConnectivityService, static already_AddRefed GetSingleton(); private: - NetworkConnectivityService(); + NetworkConnectivityService() = default; virtual ~NetworkConnectivityService() = default; nsresult Init(); @@ -47,18 +47,20 @@ class NetworkConnectivityService : public nsINetworkConnectivityService, // Will be set to OK if the DNS request returned in IP of this type, // NOT_AVAILABLE if that type of resolution is not available // UNKNOWN if the check wasn't performed - Atomic mDNSv4; - Atomic mDNSv6; + Atomic mDNSv4{ConnectivityState::UNKNOWN}; + Atomic mDNSv6{ConnectivityState::UNKNOWN}; + Atomic mDNS_HTTPS{ConnectivityState::UNKNOWN}; - Atomic mIPv4; - Atomic mIPv6; + Atomic mIPv4{ConnectivityState::UNKNOWN}; + Atomic mIPv6{ConnectivityState::UNKNOWN}; - Atomic mNAT64; + Atomic mNAT64{ConnectivityState::UNKNOWN}; - nsTArray mNAT64Prefixes; + nsTArray mNAT64Prefixes{ConnectivityState::UNKNOWN}; nsCOMPtr mDNSv4Request; nsCOMPtr mDNSv6Request; + nsCOMPtr mDNS_HTTPSRequest; nsCOMPtr mNAT64Request; nsCOMPtr mIPv4Channel; @@ -67,7 +69,7 @@ class NetworkConnectivityService : public nsINetworkConnectivityService, bool mCheckedNetworkId = false; bool mHasNetworkId = false; - Mutex mLock MOZ_UNANNOTATED; + Mutex mLock MOZ_UNANNOTATED{"nat64prefixes"}; }; } // namespace net -- cgit v1.2.3