Struct xpcom::interfaces::nsIMessageSender
[−]
[src]
#[repr(C)]pub struct nsIMessageSender { /* fields omitted */ }
interface nsIMessageSender : nsIMessageListenerManager
/**
* Message "senders" have a single "other side" to which messages are
* sent. For example, a child-process message manager will send
* messages that are only delivered to its one parent-process message
* manager.
*/
Methods
impl nsIMessageSender
[src]
pub fn coerce<T: nsIMessageSenderCoerce>(&self) -> &T
[src]
Cast this nsIMessageSender
to one of its base interfaces.
impl nsIMessageSender
[src]
pub unsafe fn GetProcessMessageManager(
&self,
aProcessMessageManager: *mut *const nsIMessageSender
) -> nsresult
[src]
&self,
aProcessMessageManager: *mut *const nsIMessageSender
) -> nsresult
/**
* For remote browsers there is always a corresponding process message
* manager. The intention of this attribute is to link leaf level frame
* message managers on the parent side with the corresponding process
* message managers (if there is one). For any other cases this property
* is null.
*/
readonly attribute nsIMessageSender processMessageManager;
pub unsafe fn GetRemoteType(&self, aRemoteType: &mut nsAString) -> nsresult
[src]
/**
* For remote browsers, this contains the remoteType of the content child.
* Otherwise, it is empty.
*/
readonly attribute AString remoteType;
Methods from Deref<Target = nsIMessageListenerManager>
pub fn coerce<T: nsIMessageListenerManagerCoerce>(&self) -> &T
[src]
Cast this nsIMessageListenerManager
to one of its base interfaces.
pub unsafe fn AddMessageListener(
&self,
messageName: &nsAString,
listener: *const nsIMessageListener,
listenWhenClosed: bool
) -> nsresult
[src]
&self,
messageName: &nsAString,
listener: *const nsIMessageListener,
listenWhenClosed: bool
) -> nsresult
/**
* Register |listener| to receive |messageName|. All listener
* callbacks for a particular message are invoked when that message
* is received.
*
* The message manager holds a strong ref to |listener|.
*
* If the same listener registers twice for the same message, the
* second registration is ignored.
*
* Pass true for listenWhenClosed if you want to receive messages
* during the short period after a frame has been removed from the
* DOM and before its frame script has finished unloading. This
* parameter only has an effect for frame message managers in
* the main process. Default is false.
*/
void addMessageListener (in AString messageName, in nsIMessageListener listener, [optional] in boolean listenWhenClosed);
pub unsafe fn RemoveMessageListener(
&self,
messageName: &nsAString,
listener: *const nsIMessageListener
) -> nsresult
[src]
&self,
messageName: &nsAString,
listener: *const nsIMessageListener
) -> nsresult
/**
* Undo an |addMessageListener| call -- that is, calling this causes us to no
* longer invoke |listener| when |messageName| is received.
*
* removeMessageListener does not remove a message listener added via
* addWeakMessageListener; use removeWeakMessageListener for that.
*/
void removeMessageListener (in AString messageName, in nsIMessageListener listener);
pub unsafe fn AddWeakMessageListener(
&self,
messageName: &nsAString,
listener: *const nsIMessageListener
) -> nsresult
[src]
&self,
messageName: &nsAString,
listener: *const nsIMessageListener
) -> nsresult
/**
* This is just like addMessageListener, except the message manager holds a
* weak ref to |listener|.
*
* If you have two weak message listeners for the same message, they may be
* called in any order.
*/
void addWeakMessageListener (in AString messageName, in nsIMessageListener listener);
pub unsafe fn RemoveWeakMessageListener(
&self,
messageName: &nsAString,
listener: *const nsIMessageListener
) -> nsresult
[src]
&self,
messageName: &nsAString,
listener: *const nsIMessageListener
) -> nsresult
/**
* This undoes an |addWeakMessageListener| call.
*/
void removeWeakMessageListener (in AString messageName, in nsIMessageListener listener);
pub unsafe fn MarkForCC(&self) -> bool
[src]
[notxpcom] boolean markForCC ();
Trait Implementations
impl XpCom for nsIMessageSender
[src]
const IID: nsIID
IID: nsIID = nsID(3143465444, 59196, 17895, [150, 81, 77, 113, 143, 75, 153, 76])
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 nsIMessageSender
[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 nsIMessageSender
[src]
type Target = nsIMessageListenerManager
The resulting type after dereferencing.
fn deref(&self) -> &nsIMessageListenerManager
[src]
Dereferences the value.