2007-08-16 00:43:12 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-08-16 00:43:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2014-10-15 13:23:22 +00:00
|
|
|
[scriptable, uuid(a6dcc76e-9f62-4cc1-a470-b483a1a6f096)]
|
2007-08-16 00:43:12 +00:00
|
|
|
interface nsIBlocklistService : nsISupports
|
|
|
|
{
|
2008-11-02 12:13:48 +00:00
|
|
|
// Indicates that the item does not appear in the blocklist.
|
|
|
|
const unsigned long STATE_NOT_BLOCKED = 0;
|
|
|
|
// Indicates that the item is in the blocklist but the problem is not severe
|
|
|
|
// enough to warant forcibly blocking.
|
|
|
|
const unsigned long STATE_SOFTBLOCKED = 1;
|
|
|
|
// Indicates that the item should be blocked and never used.
|
|
|
|
const unsigned long STATE_BLOCKED = 2;
|
|
|
|
|
2018-04-23 16:11:34 +00:00
|
|
|
// Unused; Please increment if we add more blocklist states.
|
2021-04-06 19:28:14 +00:00
|
|
|
const unsigned long STATE_MAX = 3;
|
2011-05-25 21:31:56 +00:00
|
|
|
|
2018-03-06 16:31:24 +00:00
|
|
|
readonly attribute boolean isLoaded;
|
2010-09-02 01:35:06 +00:00
|
|
|
};
|