"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "netwerk/dns/TRRServiceParent.cpp" between
firefox-90.0.1.source.tar.xz and firefox-90.0.2.source.tar.xz

About: Firefox is Mozilla’s standalone Web browser. Source code.

TRRServiceParent.cpp  (firefox-90.0.1.source.tar.xz):TRRServiceParent.cpp  (firefox-90.0.2.source.tar.xz)
skipping to change at line 26 skipping to change at line 26
#include "nsINetworkLinkService.h" #include "nsINetworkLinkService.h"
#include "nsIObserverService.h" #include "nsIObserverService.h"
#include "nsIOService.h" #include "nsIOService.h"
#include "nsNetCID.h" #include "nsNetCID.h"
#include "TRRService.h" #include "TRRService.h"
namespace mozilla { namespace mozilla {
namespace net { namespace net {
static const char* gTRRUriCallbackPrefs[] = { static const char* gTRRUriCallbackPrefs[] = {
"network.trr.uri", "network.trr.mode", kRolloutURIPref, kRolloutModePref, "network.trr.uri", "network.trr.default_provider_uri",
nullptr, "network.trr.mode", kRolloutURIPref,
kRolloutModePref, nullptr,
}; };
NS_IMPL_ISUPPORTS(TRRServiceParent, nsIObserver, nsISupportsWeakReference) NS_IMPL_ISUPPORTS(TRRServiceParent, nsIObserver, nsISupportsWeakReference)
void TRRServiceParent::Init() { void TRRServiceParent::Init() {
MOZ_ASSERT(gIOService); MOZ_ASSERT(gIOService);
if (!gIOService->SocketProcessReady()) { if (!gIOService->SocketProcessReady()) {
RefPtr<TRRServiceParent> self = this; RefPtr<TRRServiceParent> self = this;
gIOService->CallOrWaitForSocketProcess([self]() { self->Init(); }); gIOService->CallOrWaitForSocketProcess([self]() { self->Init(); });
skipping to change at line 136 skipping to change at line 137
}); });
} }
// static // static
void TRRServiceParent::PrefsChanged(const char* aName, void* aSelf) { void TRRServiceParent::PrefsChanged(const char* aName, void* aSelf) {
static_cast<TRRServiceParent*>(aSelf)->prefsChanged(aName); static_cast<TRRServiceParent*>(aSelf)->prefsChanged(aName);
} }
void TRRServiceParent::prefsChanged(const char* aName) { void TRRServiceParent::prefsChanged(const char* aName) {
if (!aName || !strcmp(aName, "network.trr.uri") || if (!aName || !strcmp(aName, "network.trr.uri") ||
!strcmp(aName, "network.trr.default_provider_uri") ||
!strcmp(aName, kRolloutURIPref)) { !strcmp(aName, kRolloutURIPref)) {
OnTRRURIChange(); OnTRRURIChange();
} }
if (!aName || !strcmp(aName, "network.trr.mode") || if (!aName || !strcmp(aName, "network.trr.mode") ||
!strcmp(aName, kRolloutModePref)) { !strcmp(aName, kRolloutModePref)) {
OnTRRModeChange(); OnTRRModeChange();
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)