Struct xpcom::interfaces::nsILoadContext
[−]
[src]
#[repr(C)]pub struct nsILoadContext { /* fields omitted */ }
interface nsILoadContext : nsISupports
/**
* An nsILoadContext represents the context of a load. This interface
* can be queried for various information about where the load is
* happening.
*/
Methods
impl nsILoadContext
[src]
pub fn coerce<T: nsILoadContextCoerce>(&self) -> &T
[src]
Cast this nsILoadContext
to one of its base interfaces.
impl nsILoadContext
[src]
pub unsafe fn GetAssociatedWindow(
&self,
aAssociatedWindow: *mut *const mozIDOMWindowProxy
) -> nsresult
[src]
&self,
aAssociatedWindow: *mut *const mozIDOMWindowProxy
) -> nsresult
/**
* associatedWindow is the window with which the load is associated, if any.
* Note that the load may be triggered by a document which is different from
* the document in associatedWindow, and in fact the source of the load need
* not be same-origin with the document in associatedWindow. This attribute
* may be null if there is no associated window.
*/
readonly attribute mozIDOMWindowProxy associatedWindow;
pub unsafe fn GetTopWindow(
&self,
aTopWindow: *mut *const mozIDOMWindowProxy
) -> nsresult
[src]
&self,
aTopWindow: *mut *const mozIDOMWindowProxy
) -> nsresult
/**
* topWindow is the top window which is of same type as associatedWindow.
* This is equivalent to associatedWindow.top, but is provided here as a
* convenience. All the same caveats as associatedWindow of apply, of
* course. This attribute may be null if there is no associated window.
*/
readonly attribute mozIDOMWindowProxy topWindow;
pub unsafe fn GetTopFrameElement(
&self,
aTopFrameElement: *mut *const nsIDOMElement
) -> nsresult
[src]
&self,
aTopFrameElement: *mut *const nsIDOMElement
) -> nsresult
/**
* topFrameElement is the <iframe>, <frame>, or <browser> element which
* contains the topWindow with which the load is associated.
*
* Note that we may have a topFrameElement even when we don't have an
* associatedWindow, if the topFrameElement's content lives out of process.
* topFrameElement is available in single-process and multiprocess contexts.
* Note that topFrameElement may be in chrome even when the nsILoadContext is
* associated with content.
*/
readonly attribute nsIDOMElement topFrameElement;
pub unsafe fn GetNestedFrameId(&self, aNestedFrameId: *mut uint64_t) -> nsresult
[src]
/**
* If this LoadContext corresponds to a nested remote iframe, we don't have
* access to the topFrameElement. Instead, we must use this id to send
* messages. A return value of 0 signifies that this load context is not for
* a nested frame.
*/
readonly attribute unsigned long long nestedFrameId;
pub unsafe fn GetIsContent(&self, aIsContent: *mut bool) -> nsresult
[src]
/**
* True if the load context is content (as opposed to chrome). This is
* determined based on the type of window the load is performed in, NOT based
* on any URIs that might be around.
*/
readonly attribute boolean isContent;
pub unsafe fn GetUsePrivateBrowsing(
&self,
aUsePrivateBrowsing: *mut bool
) -> nsresult
[src]
&self,
aUsePrivateBrowsing: *mut bool
) -> nsresult
attribute boolean usePrivateBrowsing;
pub unsafe fn SetUsePrivateBrowsing(
&self,
aUsePrivateBrowsing: bool
) -> nsresult
[src]
&self,
aUsePrivateBrowsing: bool
) -> nsresult
attribute boolean usePrivateBrowsing;
pub unsafe fn GetUseRemoteTabs(&self, aUseRemoteTabs: *mut bool) -> nsresult
[src]
/**
* Attribute that determines if remote (out-of-process) tabs should be used.
*/
readonly attribute boolean useRemoteTabs;
pub unsafe fn GetUseTrackingProtection(
&self,
aUseTrackingProtection: *mut bool
) -> nsresult
[src]
&self,
aUseTrackingProtection: *mut bool
) -> nsresult
attribute boolean useTrackingProtection;
pub unsafe fn SetUseTrackingProtection(
&self,
aUseTrackingProtection: bool
) -> nsresult
[src]
&self,
aUseTrackingProtection: bool
) -> nsresult
attribute boolean useTrackingProtection;
pub unsafe fn SetPrivateBrowsing(&self, aInPrivateBrowsing: bool) -> nsresult
[src]
/**
* Set the private browsing state of the load context, meant to be used internally.
*/
[noscript] void SetPrivateBrowsing (in boolean aInPrivateBrowsing);
pub unsafe fn SetRemoteTabs(&self, aUseRemoteTabs: bool) -> nsresult
[src]
/**
* Set the remote tabs state of the load context, meant to be used internally.
*/
[noscript] void SetRemoteTabs (in boolean aUseRemoteTabs);
pub unsafe fn GetIsInIsolatedMozBrowserElement(
&self,
aIsInIsolatedMozBrowserElement: *mut bool
) -> nsresult
[src]
&self,
aIsInIsolatedMozBrowserElement: *mut bool
) -> nsresult
/**
* Returns true iff the load is occurring inside an isolated mozbrowser
* element. <xul:browser> is not considered to be a mozbrowser element.
* <iframe mozbrowser noisolation> does not count as isolated since
* isolation is disabled. Isolation can only be disabled if the
* containing document is chrome.
*/
readonly attribute boolean isInIsolatedMozBrowserElement;
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 nsILoadContext
[src]
const IID: nsIID
IID: nsIID = nsID(672376739, 53380, 19712, [172, 208, 247, 102, 32, 49, 92, 2])
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 nsILoadContext
[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 nsILoadContext
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.