Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode:nil; c-basic-offset: 2 -*- */
2 : /* This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 : #include "nsParentalControlsService.h"
7 : #include "nsString.h"
8 : #include "nsIFile.h"
9 : #include "mozilla/Unused.h"
10 :
11 16 : NS_IMPL_ISUPPORTS(nsParentalControlsService, nsIParentalControlsService)
12 :
13 2 : nsParentalControlsService::nsParentalControlsService() :
14 2 : mEnabled(false)
15 : {
16 2 : mozilla::Unused << mEnabled;
17 2 : }
18 :
19 : nsParentalControlsService::~nsParentalControlsService() = default;
20 :
21 : NS_IMETHODIMP
22 2 : nsParentalControlsService::GetParentalControlsEnabled(bool *aResult)
23 : {
24 2 : *aResult = false;
25 2 : return NS_OK;
26 : }
27 :
28 : NS_IMETHODIMP
29 0 : nsParentalControlsService::GetBlockFileDownloadsEnabled(bool *aResult)
30 : {
31 0 : return NS_ERROR_NOT_AVAILABLE;
32 : }
33 :
34 : NS_IMETHODIMP
35 0 : nsParentalControlsService::GetLoggingEnabled(bool *aResult)
36 : {
37 0 : return NS_ERROR_NOT_AVAILABLE;
38 : }
39 :
40 : NS_IMETHODIMP
41 0 : nsParentalControlsService::Log(int16_t aEntryType,
42 : bool blocked,
43 : nsIURI *aSource,
44 : nsIFile *aTarget)
45 : {
46 0 : return NS_ERROR_NOT_AVAILABLE;
47 : }
48 :
49 : NS_IMETHODIMP
50 0 : nsParentalControlsService::RequestURIOverride(nsIURI *aTarget,
51 : nsIInterfaceRequestor *aWindowContext,
52 : bool *_retval)
53 : {
54 0 : return NS_ERROR_NOT_AVAILABLE;
55 : }
56 :
57 : NS_IMETHODIMP
58 0 : nsParentalControlsService::RequestURIOverrides(nsIArray *aTargets,
59 : nsIInterfaceRequestor *aWindowContext,
60 : bool *_retval)
61 : {
62 0 : return NS_ERROR_NOT_AVAILABLE;
63 : }
64 :
65 : NS_IMETHODIMP
66 0 : nsParentalControlsService::IsAllowed(int16_t aAction,
67 : nsIURI *aUri,
68 : bool *_retval)
69 : {
70 0 : return NS_ERROR_NOT_AVAILABLE;
71 : }
|