goog.Disposable | |
goog.net.xpc.Transport | goog.Disposable |
goog.net.xpc.DirectTransport | goog.net.xpc.Transport |
channel
: !goog.net.xpc.CrossPageChannel
The channel this
transport belongs to.
|
opt_domHelper
: goog.dom.DomHelper=
The dom helper to use for
finding the correct window/document. If omitted, uses the current
document.
|
![]()
No description.
|
code » | ||
![]()
No description.
|
code » | ||
![]()
Sends the message.
Arguments:
|
code » | ||
![]()
No description.
Returns: goog.net.xpc.CrossPageChannelRole
The role of peer channel (either
inner or outer).
|
code » | ||
![]()
Connects to other peer. In the case of the outer peer, the setup messages are
likely sent before the inner peer is ready to receive them. Therefore, this
function will continue trying to send the SETUP message until the inner peer
responds. In the case of the inner peer, it will occasionally have its
channel name fall out of sync with the outer peer, particularly during
soft-reloads and history navigations.
|
code » | ||
![]()
Notifies the channel that this transport is connected.
|
code » | ||
![]()
Prepares to send a message.
|
code » | ||
![]()
Sends a SETUP_ACK transport service message.
|
code » | ||
![]()
Sends a SETUP transport service message.
|
code » | ||
![]()
Handles transport service messages.
Arguments:
|
code » |
Return the transport name.
Returns: string
the transport name.
|
code » | ||
No description.
Returns: number
The transport type identifier.
|
code » | ||
Returns the window associated with this transport instance.
Returns: !Window
The window to use.
|
code » | ||
![]()
Sends a message.
|
code » | ||
![]()
Handles transport service messages (internal signalling).
Arguments:
|
code » |
![]()
Invokes a callback function when this object is disposed. Callbacks are
invoked in the order in which they were added.
Arguments:
|
code » | |||
![]()
Disposes of the object. If the object hasn't already been disposed of, calls
#disposeInternal . Classes that extend goog.Disposable should
override #disposeInternal in order to delete references to COM
objects, DOM nodes, and other disposable objects. Reentrant.
Returns: void
Nothing.
|
code » | |||
![]()
Deletes or nulls out any references to COM objects, DOM nodes, or other
disposable objects. Classes that extend
goog.Disposable should
override this method.
Not reentrant. To avoid calling it twice, it must only be called from the
subclass' disposeInternal method. Everywhere else the public
dispose method must be used.
For example:
mypackage.MyClass = function() { mypackage.MyClass.base(this, 'constructor'); // Constructor logic specific to MyClass. ... }; goog.inherits(mypackage.MyClass, goog.Disposable); mypackage.MyClass.prototype.disposeInternal = function() { // Dispose logic specific to MyClass. ... // Call superclass's disposeInternal at the end of the subclass's, like // in C++, to avoid hard-to-catch issues. mypackage.MyClass.base(this, 'disposeInternal'); }; |
code » | |||
Use
#isDisposed instead.
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
No description.
Returns: boolean
Whether the object has been disposed of.
|
code » | |||
![]()
Associates a disposable object with this object so that they will be disposed
together.
Arguments:
|
code » |
![]()
The map of sending messages.
|
Code » | |
The channel this transport belongs to.
|
Code » | |
Fires once we're marked connected.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
The unique ID of this side of the connection. Used to determine when a peer
is reloaded.
|
Code » | |
No description.
|
Code » | |
![]()
Flag indicating if this instance of the transport has been initialized.
|
Code » | |
Timer for connection reattempts.
|
Code » | |
![]()
The original channel name.
|
Code » | |
![]()
The unique ID of the peer. If we get a message from a peer with an ID we
don't expect, we reset the connection.
|
Code » | |
Fires once we've received our SETUP_ACK message.
|
Code » | |
Fires once we've sent our SETUP_ACK message.
|
Code » | |
![]()
The transport type.
|
Code » |
![]()
Connects this transport.
The transport implementation is expected to call
CrossPageChannel.prototype.notifyConnected when the channel is ready
to be used.
|
Code » | |
![]()
No description.
|
Code » | |
The dom helper to use for finding the window objects to reference.
|
Code » | |
![]()
The transport type.
|
Code » |
No description.
|
code » | ||
![]()
Initializes this transport. Registers a method for 'message'-events in the
global scope.
Arguments:
|
code » | ||
No description.
|
code » | ||
No description.
|
code » | ||
Parses a transport service payload message.
|
code » |
![]()
No description.
|
Code » | |
![]()
The delay to notify the xpc of a successful connection. This is used
to allow both parties to be connected if one party's connection callback
invokes an immediate send.
|
Code » | |
![]()
Path of global message proxy.
|
Code » | |
![]()
The delimiter used for transport service messages.
|
Code » | |
![]()
Tracks the number of DirectTransport channels that have been
initialized but not disposed yet in a map keyed by the UID of the window
object. This allows for multiple windows to be initiallized and listening
for messages.
|
Code » | |
![]()
No description.
|
Code » |