/src/mozilla-central/toolkit/components/parentalcontrols/nsParentalControlsServiceDefault.cpp
Line | Count | Source (jump to first uncovered line) |
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 | | NS_IMPL_ISUPPORTS(nsParentalControlsService, nsIParentalControlsService) |
12 | | |
13 | | nsParentalControlsService::nsParentalControlsService() : |
14 | | mEnabled(false) |
15 | 1 | { |
16 | 1 | mozilla::Unused << mEnabled; |
17 | 1 | } |
18 | | |
19 | 1 | nsParentalControlsService::~nsParentalControlsService() = default; |
20 | | |
21 | | NS_IMETHODIMP |
22 | | nsParentalControlsService::GetParentalControlsEnabled(bool *aResult) |
23 | 1 | { |
24 | 1 | *aResult = false; |
25 | 1 | return NS_OK; |
26 | 1 | } |
27 | | |
28 | | NS_IMETHODIMP |
29 | | nsParentalControlsService::GetBlockFileDownloadsEnabled(bool *aResult) |
30 | 0 | { |
31 | 0 | return NS_ERROR_NOT_AVAILABLE; |
32 | 0 | } |
33 | | |
34 | | NS_IMETHODIMP |
35 | | nsParentalControlsService::GetLoggingEnabled(bool *aResult) |
36 | 0 | { |
37 | 0 | return NS_ERROR_NOT_AVAILABLE; |
38 | 0 | } |
39 | | |
40 | | NS_IMETHODIMP |
41 | | nsParentalControlsService::Log(int16_t aEntryType, |
42 | | bool blocked, |
43 | | nsIURI *aSource, |
44 | | nsIFile *aTarget) |
45 | 0 | { |
46 | 0 | return NS_ERROR_NOT_AVAILABLE; |
47 | 0 | } |
48 | | |
49 | | NS_IMETHODIMP |
50 | | nsParentalControlsService::RequestURIOverride(nsIURI *aTarget, |
51 | | nsIInterfaceRequestor *aWindowContext, |
52 | | bool *_retval) |
53 | 0 | { |
54 | 0 | return NS_ERROR_NOT_AVAILABLE; |
55 | 0 | } |
56 | | |
57 | | NS_IMETHODIMP |
58 | | nsParentalControlsService::RequestURIOverrides(nsIArray *aTargets, |
59 | | nsIInterfaceRequestor *aWindowContext, |
60 | | bool *_retval) |
61 | 0 | { |
62 | 0 | return NS_ERROR_NOT_AVAILABLE; |
63 | 0 | } |
64 | | |
65 | | NS_IMETHODIMP |
66 | | nsParentalControlsService::IsAllowed(int16_t aAction, |
67 | | nsIURI *aUri, |
68 | | bool *_retval) |
69 | 0 | { |
70 | 0 | return NS_ERROR_NOT_AVAILABLE; |
71 | 0 | } |