tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

NativeDNSResolverOverrideParent.h (1098B)


      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/. */
      6 
      7 #ifndef mozilla_net_NativeDNSResolverOverrideParent_h
      8 #define mozilla_net_NativeDNSResolverOverrideParent_h
      9 
     10 #include "mozilla/net/PNativeDNSResolverOverrideParent.h"
     11 #include "nsINativeDNSResolverOverride.h"
     12 
     13 namespace mozilla {
     14 namespace net {
     15 
     16 class NativeDNSResolverOverrideParent : public PNativeDNSResolverOverrideParent,
     17                                        public nsINativeDNSResolverOverride {
     18 public:
     19  NS_DECL_ISUPPORTS
     20  NS_DECL_NSINATIVEDNSRESOLVEROVERRIDE
     21 
     22  explicit NativeDNSResolverOverrideParent() = default;
     23  static already_AddRefed<nsINativeDNSResolverOverride> GetSingleton();
     24 
     25 private:
     26  virtual ~NativeDNSResolverOverrideParent() = default;
     27 };
     28 
     29 }  // namespace net
     30 }  // namespace mozilla
     31 
     32 #endif  // mozilla_net_NativeDNSResolverOverrideParent_h