Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 4; 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 "nsISupports.idl"
7
8
/**
9
* nsIClassifiedChannel
10
*
11
* A channel may optionally implement this interface if it carries classified
12
* result information of channel classifier. The information contains, for
13
* example, the name of matched table and the name of matched provider.
14
*/
15
[scriptable, uuid(70cf6091-a1de-4aa8-8224-058f8964be31)]
16
interface nsIClassifiedChannel : nsISupports
17
{
18
/**
19
* Sets matched info of the classified channel.
20
*
21
* @param aList
22
* Name of the Safe Browsing list that matched (e.g. goog-phish-shavar).
23
* @param aProvider
24
* Name of the Safe Browsing provider that matched (e.g. google)
25
* @param aFullHash
26
* Full hash of URL that matched Safe Browsing list.
27
*/
28
void setMatchedInfo(in ACString aList,
29
in ACString aProvider,
30
in ACString aFullHash);
31
32
/**
33
* Name of the list that matched
34
*/
35
readonly attribute ACString matchedList;
36
37
/**
38
* Name of provider that matched
39
*/
40
readonly attribute ACString matchedProvider;
41
42
/**
43
* Full hash of URL that matched
44
*/
45
readonly attribute ACString matchedFullHash;
46
47
/**
48
* Sets matched tracking info of the classified channel.
49
*
50
* @param aLists
51
* Name of the Tracking Protection list that matched (e.g. content-track-digest256).
52
* @param aFullHash
53
* Full hash of URLs that matched Tracking Protection list.
54
*/
55
void setMatchedTrackingInfo(in Array<ACString> aLists,
56
in Array<ACString> aFullHashes);
57
58
/**
59
* Name of the lists that matched
60
*/
61
readonly attribute Array<ACString> matchedTrackingLists;
62
63
/**
64
* Full hash of URLs that matched
65
*/
66
readonly attribute Array<ACString> matchedTrackingFullHashes;
67
};