1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include
"nsISupports.idl"
8 * Helper for syncing remote exception lists for third-party cookie blocking.
10 [scriptable
, uuid(1ee0cc18
-c968
-4105-a895
-bdea08e187eb
)]
11 interface nsIThirdPartyCookieBlockingExceptionListService
: nsISupports
{
13 * Initialize the service and import exceptions.
14 * Resolves once the initial set of exceptions has been imported.
19 * Shutdown the service.
24 [scriptable
, uuid(8200e12c
-416c
-42eb
-8af5
-db9745d2e527
)]
25 interface nsIThirdPartyCookieExceptionEntry
: nsISupports
{
26 // The first-party site of the exception. This can be a wildcard to match all
28 readonly attribute ACString firstPartySite
;
30 // The third-party site of the exception.
31 readonly attribute ACString thirdPartySite
;
33 // Serialize the entry to a string in the format
34 // "firstPartySite,thirdPartySite".
39 #define NS_NSITHIRDPARTYCOOKIEBLOCKINGEXCEPTIONLISTSERVICE_CONTRACTID
"@mozilla.org/third-party-cookie-blocking-exception-list-service;1"