directtransport.js
No description.

File Location

/goog/net/xpc/directtransport.js

Classes

goog.net.xpc.DirectTransport
A direct window to window method transport. If the windows are in the same security context, this transport calls directly into the other window without using any additional mechanism. This is mainly used in scenarios where you want to optionally use a cross domain transport in cross security context situations, or optionally use a direct transport in same security context situations. Note: Global properties are exported by using this transport. One to communicate with the other window by, currently crosswindowmessaging.channel, and by using goog.getUid on window, currently closure_uid_[0-9]+.
goog.net.xpc.DirectTransport.Message_
Message container that gets passed back and forth between windows.

Public Protected Private

Global Functions

goog.net.xpc.DirectTransport.Message_.fromLiteral(literal) !DirectTransport.Message_
Creates a Message_ from a literal object.
Arguments:
literal : !Object
The literal to convert to Message.
Returns: !DirectTransport.Message_  The Message.
code »
goog.net.xpc.DirectTransport.getRoledChannelName_(channelNamerole) string
No description.
Arguments:
channelName : string
The channel name.
role : string | number
The role.
Returns: string  The formatted channel name including role.
code »
goog.net.xpc.DirectTransport.initialize_(listenWindow)
Initializes this transport. Registers a method for 'message'-events in the global scope.
Arguments:
listenWindow : !Window
The window to listen to events on.
code »
goog.net.xpc.DirectTransport.isSupported(peerWindow) boolean
No description.
Arguments:
peerWindow : !Window
The peer window to check if DirectTranport is supported on.
Returns: boolean  Whether this transport is supported.
code »
goog.net.xpc.DirectTransport.messageReceivedHandler_(literal) boolean
No description.
Arguments:
literal : !Object
The literal unrenamed message.
Returns: boolean  Whether the message was successfully delivered to a channel.
code »
goog.net.xpc.DirectTransport.parseTransportPayload_(payload) !Array.<?string>
Parses a transport service payload message.
Arguments:
payload : string
The payload.
Returns: !Array.<?string>  An array with the message type as the first member and the endpoint id as the second, if one was sent, or null otherwise.
code »

Directory xpc

File Reference