Struct xpcom::interfaces::nsILoadContextInfoFactory
[−]
[src]
#[repr(C)]pub struct nsILoadContextInfoFactory { /* fields omitted */ }
interface nsILoadContextInfoFactory : nsISupports
/**
* Since OriginAttributes struct limits the implementation of
* nsILoadContextInfo (that needs to be thread safe) to C++,
* we need a scriptable factory to create instances of that
* interface from JS.
*/
Methods
impl nsILoadContextInfoFactory
[src]
pub fn coerce<T: nsILoadContextInfoFactoryCoerce>(&self) -> &T
[src]
Cast this nsILoadContextInfoFactory
to one of its base interfaces.
impl nsILoadContextInfoFactory
[src]
pub unsafe fn GetDefault(
&self,
aDefault: *mut *const nsILoadContextInfo
) -> nsresult
[src]
&self,
aDefault: *mut *const nsILoadContextInfo
) -> nsresult
readonly attribute nsILoadContextInfo default;
pub unsafe fn GetPrivate(
&self,
aPrivate: *mut *const nsILoadContextInfo
) -> nsresult
[src]
&self,
aPrivate: *mut *const nsILoadContextInfo
) -> nsresult
readonly attribute nsILoadContextInfo private;
pub unsafe fn GetAnonymous(
&self,
aAnonymous: *mut *const nsILoadContextInfo
) -> nsresult
[src]
&self,
aAnonymous: *mut *const nsILoadContextInfo
) -> nsresult
readonly attribute nsILoadContextInfo anonymous;
pub unsafe fn FromLoadContext(
&self,
aLoadContext: *const nsILoadContext,
aAnonymous: bool,
_retval: *mut *const nsILoadContextInfo
) -> nsresult
[src]
&self,
aLoadContext: *const nsILoadContext,
aAnonymous: bool,
_retval: *mut *const nsILoadContextInfo
) -> nsresult
nsILoadContextInfo fromLoadContext (in nsILoadContext aLoadContext, in boolean aAnonymous);
pub unsafe fn FromWindow(
&self,
aWindow: *const nsIDOMWindow,
aAnonymous: bool,
_retval: *mut *const nsILoadContextInfo
) -> nsresult
[src]
&self,
aWindow: *const nsIDOMWindow,
aAnonymous: bool,
_retval: *mut *const nsILoadContextInfo
) -> nsresult
nsILoadContextInfo fromWindow (in nsIDOMWindow aWindow, in boolean aAnonymous);
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 nsILoadContextInfoFactory
[src]
const IID: nsIID
IID: nsIID = nsID(3251044925, 17176, 20377, [131, 7, 181, 204, 240, 85, 135, 147])
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 nsILoadContextInfoFactory
[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 nsILoadContextInfoFactory
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.