Struct xpcom::interfaces::nsILoadContextInfo
[−]
[src]
#[repr(C)]pub struct nsILoadContextInfo { /* fields omitted */ }
interface nsILoadContextInfo : nsISupports
/**
* Helper interface to carry informatin about the load context
* encapsulating origin attributes and IsAnonymous, IsPrivite properties.
* It shall be used where nsILoadContext cannot be used or is not
* available.
*/
Methods
impl nsILoadContextInfo
[src]
pub fn coerce<T: nsILoadContextInfoCoerce>(&self) -> &T
[src]
Cast this nsILoadContextInfo
to one of its base interfaces.
impl nsILoadContextInfo
[src]
pub const NO_APP_ID: i64
NO_APP_ID: i64 = 0
pub const UNKNOWN_APP_ID: i64
UNKNOWN_APP_ID: i64 = 4294967295
pub unsafe fn GetIsPrivate(&self, aIsPrivate: *mut bool) -> nsresult
[src]
/**
* Whether the context is in a Private Browsing mode
*/
readonly attribute boolean isPrivate;
pub unsafe fn GetIsAnonymous(&self, aIsAnonymous: *mut bool) -> nsresult
[src]
/**
* Whether the load is initiated as anonymous
*/
readonly attribute boolean isAnonymous;
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 nsILoadContextInfo
[src]
const IID: nsIID
IID: nsIID = nsID(1432235914, 41462, 16861, [136, 202, 237, 78, 214, 185, 138, 34])
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 nsILoadContextInfo
[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 nsILoadContextInfo
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.