Struct xpcom::interfaces::nsIUrlListManager [] [src]

#[repr(C)]
pub struct nsIUrlListManager { /* fields omitted */ }

interface nsIUrlListManager : nsISupports

/**
 * Interface for a class that manages updates of the url classifier database.
 */

Methods

impl nsIUrlListManager
[src]

[src]

Cast this nsIUrlListManager to one of its base interfaces.

impl nsIUrlListManager
[src]

[src]

/**
     * Get the gethash url for this table
     */

ACString getGethashUrl (in ACString tableName);

[src]

/**
     * Get the update url for this table
     */

ACString getUpdateUrl (in ACString tableName);

[src]

/**
     * Add a table to the list of tables we are managing. The name is a
     * string of the format provider_name-semantic_type-table_type.  For
     * @param tableName A string of the format
     *        provider_name-semantic_type-table_type.  For example,
     *        goog-white-enchash or goog-black-url.
     * @param providerName The name of the entity providing the list.
     * @param updateUrl The URL from which to fetch updates.
     * @param gethashUrl The URL from which to fetch hash completions.
     */

boolean registerTable (in ACString tableName, in ACString providerName, in ACString updateUrl, in ACString gethashUrl);

[src]

/**
     * Unregister table from the list
     */

void unregisterTable (in ACString tableName);

[src]

/**
     * Turn on update checking for a table. I.e., during the next server
     * check, download updates for this table.
     */

void enableUpdate (in ACString tableName);

[src]

/**
     * Turn off update checking for a table.
     */

void disableUpdate (in ACString tableName);

[src]

/**
     * Toggle update checking, if necessary.
     */

void maybeToggleUpdateChecking ();

[src]

/**
     * This is currently used by about:url-classifier to force an update
     * for the update url. Update may still fail because of backoff algorithm.
     */

boolean checkForUpdates (in ACString updateUrl);

[src]

/**
     * Force updates for the given tables, updates are still restricted to
     * backoff algorithm.
     * @param tables  A string lists all the tables that we want to trigger updates.
     *                table names are separated with ','.
     */

boolean forceUpdates (in ACString tableNames);

[src]

/**
     * This is currently used by about:url-classifier to get back-off time
     * (in millisecond since epoch) for the given provider. Return 0 if we
     * are not in back-off mode.
     */

uint64_t getBackOffTime (in ACString provider);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIUrlListManager
[src]

IID: nsIID = nsID(3590981870, 23683, 20150, [189, 251, 121, 253, 7, 22, 80, 30])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIUrlListManager
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUrlListManager
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.