Struct xpcom::interfaces::mozIDownloadPlatform [] [src]

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

interface mozIDownloadPlatform : nsISupports

Methods

impl mozIDownloadPlatform
[src]

[src]

Cast this mozIDownloadPlatform to one of its base interfaces.

impl mozIDownloadPlatform
[src]

ZONE_MY_COMPUTER: i64 = 0
/**
   * Security Zone constants. Used by mapUrlToZone().
   */

ZONE_INTRANET: i64 = 1

ZONE_TRUSTED: i64 = 2

ZONE_INTERNET: i64 = 3

ZONE_RESTRICTED: i64 = 4

[src]

/**
   * Perform platform specific operations when a download is done.
   *
   *   Windows:
   *     Add the download to the recent documents list
   *     Set the file to be indexed for searching
   *   Mac:
   *     Bounce the downloads dock icon
   *   GTK:
   *     Add the download to the recent documents list
   *     Save the source uri in the downloaded file's metadata
   *   Android:
   *     Scan media
   *
   * @param aSource
   *        Source URI of the download
   * @param aReferrer
   *        Referrer URI of the download
   * @param aTarget
   *        Downloaded file
   * @param aContentType
   *        The source's content type
   * @param aIsPrivate
   *        True for private downloads
   * @return none
   */

void downloadDone (in nsIURI aSource, in nsIURI aReferrer, in nsIFile aTarget, in ACString aContentType, in boolean aIsPrivate);

[src]

/**
   * Proxy for IInternetSecurityManager::MapUrlToZone().
   *
   *   Windows only.
   *
   * @param aURL
   *        URI of the download
   * @return Security Zone corresponding to aURL.
   */

unsigned long mapUrlToZone (in AString aURL);

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

IID: nsIID = nsID(2673176138, 55731, 18115, [159, 143, 208, 219, 26, 198, 200, 193])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for mozIDownloadPlatform
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.