Interface nsIUrlClassifierHashCompleterCallbackType

This interface is implemented by nsIUrlClassifierHashCompleter clients.

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

  • The completion is complete. This method is called once per nsIUrlClassifierCompleter::complete() call, after all completion() calls are finished.

    Parameters

    • status: number

      NS_OK if the request completed successfully, or an error code.

    Returns void

  • A complete hash has been found that matches the partial hash. This method may be called 0-n times for a given nsIUrlClassifierCompleter::complete() call.

    Parameters

    • hash: string

      The 256-bit hash that was discovered.

    • table: string

      The name of the table that this hash belongs to.

    • chunkId: uint32_t

      The database chunk that this hash belongs to.

    Returns void

  • This will be called when a fullhash response is received and parsed no matter if any full hash has been found.

    Parameters

    • partialHash: string

      The hash that was sent for completion.

    • table: string

      The name of the table that this hash belongs to.

    • negativeCacheDuration: uint32_t

      The negative cache duration in millisecond.

    • fullHashes: nsIArray

      Array of fullhashes that match the prefix.

    Returns void

Generated using TypeDoc