Struct xpcom::interfaces::nsIDocumentLoaderFactory
[−]
[src]
#[repr(C)]pub struct nsIDocumentLoaderFactory { /* fields omitted */ }
interface nsIDocumentLoaderFactory : nsISupports
/**
* To get a component that implements nsIDocumentLoaderFactory
* for a given mimetype, use nsICategoryManager to find an entry
* with the mimetype as its name in the category "Gecko-Content-Viewers".
* The value of the entry is the contractid of the component.
* The component is a service, so use GetService, not CreateInstance to get it.
*/
Methods
impl nsIDocumentLoaderFactory
[src]
pub fn coerce<T: nsIDocumentLoaderFactoryCoerce>(&self) -> &T
[src]
Cast this nsIDocumentLoaderFactory
to one of its base interfaces.
impl nsIDocumentLoaderFactory
[src]
pub unsafe fn CreateInstance(
&self,
aCommand: *const c_char,
aChannel: *const nsIChannel,
aLoadGroup: *const nsILoadGroup,
aContentType: &nsACString,
aContainer: *const nsIDocShell,
aExtraInfo: *const nsISupports,
aDocListenerResult: *mut *const nsIStreamListener,
_retval: *mut *const nsIContentViewer
) -> nsresult
[src]
&self,
aCommand: *const c_char,
aChannel: *const nsIChannel,
aLoadGroup: *const nsILoadGroup,
aContentType: &nsACString,
aContainer: *const nsIDocShell,
aExtraInfo: *const nsISupports,
aDocListenerResult: *mut *const nsIStreamListener,
_retval: *mut *const nsIContentViewer
) -> nsresult
nsIContentViewer createInstance (in string aCommand, in nsIChannel aChannel, in nsILoadGroup aLoadGroup, in ACString aContentType, in nsIDocShell aContainer, in nsISupports aExtraInfo, out nsIStreamListener aDocListenerResult);
pub unsafe fn CreateInstanceForDocument(
&self,
aContainer: *const nsISupports,
aDocument: *const nsIDocument,
aCommand: *const c_char,
_retval: *mut *const nsIContentViewer
) -> nsresult
[src]
&self,
aContainer: *const nsISupports,
aDocument: *const nsIDocument,
aCommand: *const c_char,
_retval: *mut *const nsIContentViewer
) -> nsresult
nsIContentViewer createInstanceForDocument (in nsISupports aContainer, in nsIDocument aDocument, in string aCommand);
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 nsIDocumentLoaderFactory
[src]
const IID: nsIID
IID: nsIID = nsID(3885310878, 40252, 18372, [176, 99, 158, 96, 15, 179, 178, 135])
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 nsIDocumentLoaderFactory
[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 nsIDocumentLoaderFactory
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.