Bug 1838739 - Initialize result of SetAsGPUOutOfMemoryError. r=webgpu-reviewers,nical
[gecko.git] / netwerk / dns / NativeDNSResolverOverrideChild.cpp
blob0e6c76dc5cca2f36cde1b4716520dec6959a4a6a
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set sw=2 ts=8 et tw=80 : */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "NativeDNSResolverOverrideChild.h"
8 #include "GetAddrInfo.h"
10 namespace mozilla {
11 namespace net {
13 NativeDNSResolverOverrideChild::NativeDNSResolverOverrideChild() {
14 mOverrideService = NativeDNSResolverOverride::GetSingleton();
17 mozilla::ipc::IPCResult NativeDNSResolverOverrideChild::RecvAddIPOverride(
18 const nsCString& aHost, const nsCString& aIPLiteral) {
19 Unused << mOverrideService->AddIPOverride(aHost, aIPLiteral);
20 return IPC_OK();
23 mozilla::ipc::IPCResult NativeDNSResolverOverrideChild::RecvSetCnameOverride(
24 const nsCString& aHost, const nsCString& aCNAME) {
25 Unused << mOverrideService->SetCnameOverride(aHost, aCNAME);
26 return IPC_OK();
29 mozilla::ipc::IPCResult NativeDNSResolverOverrideChild::RecvClearHostOverride(
30 const nsCString& aHost) {
31 Unused << mOverrideService->ClearHostOverride(aHost);
32 return IPC_OK();
35 mozilla::ipc::IPCResult NativeDNSResolverOverrideChild::RecvClearOverrides() {
36 Unused << mOverrideService->ClearOverrides();
37 return IPC_OK();
40 } // namespace net
41 } // namespace mozilla