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]
pub fn coerce<T: nsIUrlClassifierStreamUpdaterCoerce>(&self) -> &T
[src]
Cast this nsIUrlClassifierStreamUpdater
to one of its base interfaces.
impl nsIUrlClassifierStreamUpdater
[src]
pub unsafe fn DownloadUpdates(
&self,
aRequestTables: &nsACString,
aRequestPayload: &nsACString,
aIsPostRequest: bool,
aUpdateUrl: &nsACString,
aSuccessCallback: *const nsIUrlClassifierCallback,
aUpdateErrorCallback: *const nsIUrlClassifierCallback,
aDownloadErrorCallback: *const nsIUrlClassifierCallback,
_retval: *mut bool
) -> nsresult
[src]
&self,
aRequestTables: &nsACString,
aRequestPayload: &nsACString,
aIsPostRequest: bool,
aUpdateUrl: &nsACString,
aSuccessCallback: *const nsIUrlClassifierCallback,
aUpdateErrorCallback: *const nsIUrlClassifierCallback,
aDownloadErrorCallback: *const nsIUrlClassifierCallback,
_retval: *mut bool
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIUrlClassifierStreamUpdater
[src]
const IID: nsIID
IID: nsIID = nsID(3782833559, 62678, 19923, [161, 225, 116, 90, 211, 82, 205, 128])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIUrlClassifierStreamUpdater
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.