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"
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
);
23 mozilla::ipc::IPCResult
NativeDNSResolverOverrideChild::RecvSetCnameOverride(
24 const nsCString
& aHost
, const nsCString
& aCNAME
) {
25 Unused
<< mOverrideService
->SetCnameOverride(aHost
, aCNAME
);
29 mozilla::ipc::IPCResult
NativeDNSResolverOverrideChild::RecvClearHostOverride(
30 const nsCString
& aHost
) {
31 Unused
<< mOverrideService
->ClearHostOverride(aHost
);
35 mozilla::ipc::IPCResult
NativeDNSResolverOverrideChild::RecvClearOverrides() {
36 Unused
<< mOverrideService
->ClearOverrides();
41 } // namespace mozilla