mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
651c28ca53
In order to optionally report the full hash back to Google, we need to keep it around in the callback. While a prefix is not the same as a full hash (multiple full hashes can map to the same prefix), in this case, the callback will only be called when the full hash matches. MozReview-Commit-ID: F4WSLZpYrXB --HG-- extra : rebase_source : da3b16b00729d0aa6ff1765a135b751fcf44c012
48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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/. */
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
/**
|
|
* nsIClassifiedChannel
|
|
*
|
|
* A channel may optionally implement this interface if it carries classified
|
|
* result information of channel classifier. The information contains, for
|
|
* example, the name of matched table and the name of matched provider.
|
|
*/
|
|
[scriptable, uuid(70cf6091-a1de-4aa8-8224-058f8964be31)]
|
|
interface nsIClassifiedChannel : nsISupports
|
|
{
|
|
/**
|
|
* Sets matched info of the classified channel.
|
|
*
|
|
* @param aList
|
|
* Name of the Safe Browsing list that matched (e.g. goog-phish-shavar).
|
|
* @param aProvider
|
|
* Name of the Safe Browsing provider that matched (e.g. google)
|
|
* @param aFullHash
|
|
* Full hash of URL that matched Safe Browsing list.
|
|
*/
|
|
void setMatchedInfo(in ACString aList,
|
|
in ACString aProvider,
|
|
in ACString aFullHash);
|
|
|
|
/**
|
|
* Name of the list that matched
|
|
*/
|
|
readonly attribute ACString matchedList;
|
|
|
|
/**
|
|
* Name of provider that matched
|
|
*/
|
|
readonly attribute ACString matchedProvider;
|
|
|
|
/**
|
|
* Full hash of URL that matched
|
|
*/
|
|
readonly attribute ACString matchedFullHash;
|
|
|
|
};
|