Bug 1838739 - Initialize result of SetAsGPUOutOfMemoryError. r=webgpu-reviewers,nical
[gecko.git] / netwerk / dns / NativeDNSResolverOverrideParent.h
blobb0cb5e4d6dead80a5a2d5dc4b760e4193ae49848
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_NativeDNSResolverOverrideParent_h
8 #define mozilla_net_NativeDNSResolverOverrideParent_h
10 #include "mozilla/net/PNativeDNSResolverOverrideParent.h"
11 #include "nsINativeDNSResolverOverride.h"
13 namespace mozilla {
14 namespace net {
16 class NativeDNSResolverOverrideParent : public PNativeDNSResolverOverrideParent,
17 public nsINativeDNSResolverOverride {
18 public:
19 NS_DECL_ISUPPORTS
20 NS_DECL_NSINATIVEDNSRESOLVEROVERRIDE
22 explicit NativeDNSResolverOverrideParent() = default;
23 static already_AddRefed<nsINativeDNSResolverOverride> GetSingleton();
25 private:
26 virtual ~NativeDNSResolverOverrideParent() = default;
29 } // namespace net
30 } // namespace mozilla
32 #endif // mozilla_net_NativeDNSResolverOverrideParent_h