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]
pub fn coerce<T: nsIExternalHelperAppServiceCoerce>(&self) -> &T
[src]
Cast this nsIExternalHelperAppService
to one of its base interfaces.
impl nsIExternalHelperAppService
[src]
pub unsafe fn DoContent(
&self,
aMimeContentType: &nsACString,
aRequest: *const nsIRequest,
aContentContext: *const nsIInterfaceRequestor,
aForceSave: bool,
aWindowContext: *const nsIInterfaceRequestor,
_retval: *mut *const nsIStreamListener
) -> nsresult
[src]
&self,
aMimeContentType: &nsACString,
aRequest: *const nsIRequest,
aContentContext: *const nsIInterfaceRequestor,
aForceSave: bool,
aWindowContext: *const nsIInterfaceRequestor,
_retval: *mut *const nsIStreamListener
) -> nsresult
/**
* 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);
pub unsafe fn ApplyDecodingForExtension(
&self,
aExtension: &nsACString,
aEncodingType: &nsACString,
_retval: *mut bool
) -> nsresult
[src]
&self,
aExtension: &nsACString,
aEncodingType: &nsACString,
_retval: *mut bool
) -> nsresult
/**
* 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>
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 nsIExternalHelperAppService
[src]
const IID: nsIID
IID: nsIID = nsID(508508897, 46903, 17183, [169, 93, 49, 250, 141, 167, 1, 153])
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 nsIExternalHelperAppService
[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 nsIExternalHelperAppService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.