Struct xpcom::interfaces::nsIExternalHelperAppService [] [src]

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

interface nsIExternalHelperAppService : nsISupports

/**
 * The external helper app service is used for finding and launching
 * platform specific external applications for a given mime content type.
 */

Methods

impl nsIExternalHelperAppService
[src]

[src]

Cast this nsIExternalHelperAppService to one of its base interfaces.

impl nsIExternalHelperAppService
[src]

[src]

/**
   * Binds an external helper application to a stream listener. The caller
   * should pump data into the returned stream listener. When the OnStopRequest
   * is issued, the stream listener implementation will launch the helper app
   * with this data.
   * @param aMimeContentType The content type of the incoming data
   * @param aRequest The request corresponding to the incoming data
   * @param aContentContext Used in processing content document refresh
   *  headers after target content is downloaded. Note in e10s land
   *  this is likely a CPOW that points to a window in the child process.
   * @param aForceSave True to always save this content to disk, regardless of
   *  nsIMIMEInfo and other such influences.
   * @param aWindowContext Used in parenting helper app dialogs, usually
   *  points to the parent browser window. This parameter may be null,
   *  in which case dialogs will be parented to aContentContext.
   * @return A nsIStreamListener which the caller should pump the data into.
   */

nsIStreamListener doContent (in ACString aMimeContentType, in nsIRequest aRequest, in nsIInterfaceRequestor aContentContext, in boolean aForceSave, [optional] in nsIInterfaceRequestor aWindowContext);

[src]

/**
   * Returns true if data from a URL with this extension combination
   * is to be decoded from aEncodingType prior to saving or passing
   * off to helper apps, false otherwise.
   */

boolean applyDecodingForExtension (in AUTF8String aExtension, in ACString aEncodingType);

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

IID: nsIID = nsID(508508897, 46903, 17183, [169, 93, 49, 250, 141, 167, 1, 153])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIExternalHelperAppService
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.