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/. */
6 #include "nsParentalControlsService.h"
10 NS_IMPL_ISUPPORTS(nsParentalControlsService
, nsIParentalControlsService
)
12 nsParentalControlsService::nsParentalControlsService() : mEnabled(false) {}
14 nsParentalControlsService::~nsParentalControlsService() {}
17 nsParentalControlsService::GetParentalControlsEnabled(bool* aResult
) {
23 nsParentalControlsService::GetBlockFileDownloadsEnabled(bool* aResult
) {
24 // NOTE: isAllowed returns the opposite intention, so we need to flip it
26 IsAllowed(nsIParentalControlsService::DOWNLOAD
, NULL
, &res
);
33 nsParentalControlsService::GetLoggingEnabled(bool* aResult
) {
34 // Android doesn't currently have any method of logging restricted actions.
40 nsParentalControlsService::Log(int16_t aEntryType
, bool aBlocked
,
41 nsIURI
* aSource
, nsIFile
* aTarget
) {
42 return NS_ERROR_NOT_AVAILABLE
;
46 nsParentalControlsService::IsAllowed(int16_t aAction
, nsIURI
* aUri
,
55 return NS_ERROR_NOT_AVAILABLE
;