net.xpc

Classes

goog.net.xpc.CrossPageChannel
A communication channel between two documents from different domains. Provides asynchronous messaging.
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.FrameElementMethodTransport
Frame-element method transport. Firefox allows a document within an iframe to call methods on the iframe-element added by the containing document. NOTE(user): Tested in all FF versions starting from 1.0
goog.net.xpc.IframePollingTransport
Iframe polling transport. Uses hidden iframes to transfer data in the fragment identifier of the URL. The peer polls the iframe's location for changes. Unfortunately, in Safari this screws up the history, because Safari doesn't allow to call location.replace() on a window containing a document from a different domain (last version tested: 2.0.4).
goog.net.xpc.IframeRelayTransport
Iframe relay transport. Creates hidden iframes containing a document from the peer's origin. Data is transferred in the fragment identifier. Therefore the document loaded in the iframes can be served from the browser's cache.
goog.net.xpc.NativeMessagingTransport
The native messaging transport Uses document.postMessage() to send messages to other documents. Receiving is done by listening on 'message'-events on the document.
goog.net.xpc.NixTransport
NIX method transport. NOTE(user): NIX method tested in all IE versions starting from 6.0.
goog.net.xpc.Transport
The base class for transports.

Public Protected Private

Enumerations

goog.net.xpc.ChannelStates :
No description.
Constants:
CLOSED
No description.
CONNECTED
No description.
NOT_CONNECTED
No description.
Code »
goog.net.xpc.CrossPageChannelRole :
The role of the peer.
Constants:
INNER
No description.
OUTER
No description.
Code »
goog.net.xpc.TransportTypes :
Enum used to identify transport types.
Constants:
DIRECT
No description.
FLASH
No description.
FRAME_ELEMENT_METHOD
No description.
IFRAME_POLLING
No description.
IFRAME_RELAY
No description.
NATIVE_MESSAGING
No description.
NIX
No description.
Code »

Global Functions

goog.net.xpc.getRandomString(lengthopt_characters) string
Returns a random string.
Arguments:
length : number
How many characters the string shall contain.
opt_characters : string=
The characters used.
Returns: string  The random string.
code »

Global Properties

goog.net.xpc.CfgFields :
Field names used on configuration object.
Code »
goog.net.xpc.CrossPageChannelTest :
No description.
Code »
goog.net.xpc.DirectTransportTest :
No description.
Code »
goog.net.xpc.IframePollingTransportTest :
No description.
Code »
goog.net.xpc.NativeMessagingTransportTest :
No description.
Code »
goog.net.xpc.SETUP :
Transport signaling message: setup.
Code »
goog.net.xpc.SETUP_ACK_ :
Transport signaling message: setup acknowledgement.
Code »
goog.net.xpc.SETUP_ACK_NTPV2 :
Transport signaling message: setup acknowledgement.
Code »
goog.net.xpc.SETUP_NTPV2 :
Transport signaling message: setup for native transport protocol v2.
Code »
goog.net.xpc.TRANSPORT_SERVICE_ :
The name of the transport service (used for internal signalling).
Code »
goog.net.xpc.TransportNames :
Enum containing transport names. These need to correspond to the transport class names for createTransport_() to work.
Code »
goog.net.xpc.UriCfgFields :
Config properties that need to be URL sanitized.
Code »
goog.net.xpc.channels :
Object holding active channels. Package private. Do not call from outside goog.net.xpc.
Code »
goog.net.xpc.logger : goog.debug.Logger
The logger.
Code »
goog.net.xpc.randomStringCharacters_ :
The default characters used for random string generation.
Code »
goog.net.xpc.relay :
No description.
Code »

Package net

Package Reference