Bug 1861709 replace AudioCallbackDriver::ThreadRunning() assertions that mean to...
[gecko.git] / netwerk / dns / TRRServiceChild.h
blobf9c6136f707abb6ee862682d0b17bf484d0b3067
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_TRRServiceChild_h
8 #define mozilla_net_TRRServiceChild_h
10 #include "mozilla/net/PTRRServiceChild.h"
11 #include "nsIObserver.h"
12 #include "nsWeakReference.h"
14 namespace mozilla {
16 namespace ipc {
17 class FileDescriptor;
18 } // namespace ipc
20 namespace net {
22 class TRRServiceChild : public PTRRServiceChild,
23 public nsIObserver,
24 public nsSupportsWeakReference {
25 public:
26 NS_DECL_ISUPPORTS
27 NS_DECL_NSIOBSERVER
29 TRRServiceChild();
30 static TRRServiceChild* GetSingleton();
32 void Init(const bool& aCaptiveIsPassed, const bool& aParentalControlEnabled,
33 nsTArray<nsCString>&& aDNSSuffixList);
34 mozilla::ipc::IPCResult RecvNotifyObserver(const nsCString& aTopic,
35 const nsString& aData);
36 mozilla::ipc::IPCResult RecvUpdatePlatformDNSInformation(
37 nsTArray<nsCString>&& aDNSSuffixList);
38 mozilla::ipc::IPCResult RecvUpdateParentalControlEnabled(
39 const bool& aEnabled);
40 mozilla::ipc::IPCResult RecvClearDNSCache(const bool& aTrrToo);
41 mozilla::ipc::IPCResult RecvSetDetectedTrrURI(const nsCString& aURI);
42 mozilla::ipc::IPCResult RecvSetDefaultTRRConnectionInfo(
43 Maybe<HttpConnectionInfoCloneArgs>&& aArgs);
44 mozilla::ipc::IPCResult RecvUpdateEtcHosts(nsTArray<nsCString>&& aHosts);
46 private:
47 virtual ~TRRServiceChild();
50 } // namespace net
51 } // namespace mozilla
53 #endif // mozilla_net_TRRServiceChild_h