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"
22 class TRRServiceChild
: public PTRRServiceChild
,
24 public nsSupportsWeakReference
{
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
);
47 virtual ~TRRServiceChild();
51 } // namespace mozilla
53 #endif // mozilla_net_TRRServiceChild_h