goog.Disposable | |
goog.net.xpc.Transport | goog.Disposable |
goog.net.xpc.IframeRelayTransport | 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.
|
![]()
Connects this transport.
|
code » | ||
![]()
No description.
|
code » | ||
![]()
Sends a message.
|
code » | ||
![]()
Sends an encoded message or message fragment.
|
code » | ||
![]()
Handles transport service messages (internal signalling).
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 » |
![]()
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 » |
![]()
Function which wraps cleanup_().
|
code » | ||
![]()
Remove all relay-iframes which are older than the maximal age.
Arguments:
|
code » | ||
![]()
The iframe load handler. Gets called as method on the iframe element.
|
code » | ||
![]()
Processes an incoming message.
|
code » | ||
![]()
Starts the cleanup timer.
|
code » |
![]()
Interval at which iframes are destroyed.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Maximum sendable size of a payload via a single iframe in IE.
|
Code » | |
![]()
Time after which a relay-iframe is destroyed.
|
Code » | |
![]()
The cleanup timer id.
|
Code » | |
![]()
Used to track incoming payload fragments. The implementation can process
incoming fragments from several channels at a time, even if data is
out-of-order or interleaved.
|
Code » | |
![]()
Array to keep references to the relay-iframes. Used only if
there is no way to detect when the iframes are loaded. In that
case the relay-iframes are removed after a timeout.
|
Code » | |
![]()
No description.
|
Code » |