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 #ifndef mozilla_net_NativeDNSResolverOverrideChild_h
8 #define mozilla_net_NativeDNSResolverOverrideChild_h
10 #include "mozilla/net/PNativeDNSResolverOverrideChild.h"
11 #include "nsINativeDNSResolverOverride.h"
16 class NativeDNSResolverOverrideChild
: public PNativeDNSResolverOverrideChild
{
18 NS_INLINE_DECL_REFCOUNTING(NativeDNSResolverOverrideChild
, override
)
20 NativeDNSResolverOverrideChild();
22 mozilla::ipc::IPCResult
RecvAddIPOverride(const nsCString
& aHost
,
23 const nsCString
& aIPLiteral
);
24 mozilla::ipc::IPCResult
RecvSetCnameOverride(const nsCString
& aHost
,
25 const nsCString
& aCNAME
);
26 mozilla::ipc::IPCResult
RecvClearHostOverride(const nsCString
& aHost
);
27 mozilla::ipc::IPCResult
RecvClearOverrides();
30 virtual ~NativeDNSResolverOverrideChild() = default;
32 nsCOMPtr
<nsINativeDNSResolverOverride
> mOverrideService
;
36 } // namespace mozilla
38 #endif // mozilla_net_NativeDNSResolverOverrideChild_h