Struct xpcom::interfaces::nsIUrlClassifierStreamUpdater [] [src]

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

interface nsIUrlClassifierStreamUpdater : nsISupports

/**
 * This is a class to manage large table updates from the server.  Rather than
 * downloading the whole update and then updating the sqlite database, we
 * update tables as the data is streaming in.
 */

Methods

impl nsIUrlClassifierStreamUpdater
[src]

[src]

Cast this nsIUrlClassifierStreamUpdater to one of its base interfaces.

impl nsIUrlClassifierStreamUpdater
[src]

[src]

/**
   * Try to download updates from updateUrl. If an update is already in
   * progress, queues the requested update. This is used in nsIUrlListManager
   * as well as in testing.
   * @param aRequestTables Comma-separated list of tables included in this
   *        update.
   * @param aRequestPayload The payload for the request.
   * @param aIsPostRequest Whether the request should be sent by POST method.
   *                       Should be 'true' for v2 usage.
   * @param aUpdateUrl The plaintext url from which to request updates.
   * @param aSuccessCallback Called after a successful update.
   * @param aUpdateErrorCallback Called for problems applying the update
   * @param aDownloadErrorCallback Called if we get an http error or a
   *        connection refused error.
   */

boolean downloadUpdates (in ACString aRequestTables, in ACString aRequestPayload, in boolean aIsPostRequest, in ACString aUpdateUrl, in nsIUrlClassifierCallback aSuccessCallback, in nsIUrlClassifierCallback aUpdateErrorCallback, in nsIUrlClassifierCallback aDownloadErrorCallback);

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 nsIUrlClassifierStreamUpdater
[src]

IID: nsIID = nsID(3782833559, 62678, 19923, [161, 225, 116, 90, 211, 82, 205, 128])

[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 nsIUrlClassifierStreamUpdater
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIUrlClassifierStreamUpdater
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.