Interface nsIUrlClassifierUtilsType

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Convert list name to threat type.

    Returns

    The threat type in integer.

    Parameters

    • listName: string

    Returns uint32_t

  • Convert threat type to list name.

    Returns

    The list names separated by ','. For example, 'goog-phish-proto,test-phish-proto'.

    Parameters

    • threatType: uint32_t

    Returns string

  • Get the lookup string for a given URI. This normalizes the hostname, url-decodes the string, and strips off the protocol.

    Returns

    String containing the canonicalized URI.

    Parameters

    • uri: nsIURI

      URI to get the lookup key for.

    Returns string

  • Get the protocol version for the given provider.

    Returns

    String to indicate the protocol version. e.g. "2.2"

    Parameters

    • provider: string

      String the provider name. e.g. "google"

    Returns string

  • Get the provider by table name.

    Returns

    the provider name that the given table belongs.

    Parameters

    • tableName: string

      The table name that we want to lookup

    Returns string

  • Get the provider used for Telemetry. Because recording Telemetry will leak user-controlled strings, only built-in providers should be recorded.

    Returns

    the filtered provider for telemetry.

    Parameters

    • tableName: string

      The table name that we want to lookup

    Returns string

  • Make "find full hash" request by for the given prefixes.

    Returns

    A base64url encoded string.

    Parameters

    • aListNames: invalid

      An array of list names represented in string.

    • aListStatesBase64: invalid

      An array of list states represented in base64.

    • aPrefixes: invalid

      An array of prefixes for which we'd like to find full hashes..

      The aListNames and aListStatesBase64 arrays must be the same length.

    Returns string

  • Make ThreatHit report request body.

    Returns

    A base64 encoded string.

    Parameters

    • aChannel: nsIChannel

      channel which encountered the threat.

    • aListName: string

      listname represented in string.

    • aHashBase64: string

      hash-based hit represented in base64.

    Returns string

  • Make update request for given lists and their states.

    Returns

    A base64url encoded string.

    Parameters

    • aListNames: invalid

      An array of list name represented in string.

    • aStatesBase64: invalid

    Returns string

  • Parse V4 FindFullHash response.

    Parameters

    • aResponse: string

      Byte stream from the server.

    • aCallback: nsIUrlClassifierParseFindFullHashCallback

      The callback function on each complete hash parsed. Can be called multiple times in one parsing.

    Returns void

Generated using TypeDoc