Bug 1838739 - Initialize result of SetAsGPUOutOfMemoryError. r=webgpu-reviewers,nical
[gecko.git] / netwerk / dns / NativeDNSResolverOverrideChild.h
blob5b24cb3dcdbe4c8e65d0f20aa100dd12a65b031e
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"
13 namespace mozilla {
14 namespace net {
16 class NativeDNSResolverOverrideChild : public PNativeDNSResolverOverrideChild {
17 public:
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();
29 private:
30 virtual ~NativeDNSResolverOverrideChild() = default;
32 nsCOMPtr<nsINativeDNSResolverOverride> mOverrideService;
35 } // namespace net
36 } // namespace mozilla
38 #endif // mozilla_net_NativeDNSResolverOverrideChild_h