goog.Disposable | |
goog.net.xpc.Transport | goog.Disposable |
goog.net.xpc.FrameElementMethodTransport | 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.
|
![]()
Only used from within an iframe. Attempts to attach the method
to be used for sending messages by the containing document. Has to
wait until the containing document has finished. Therefore calls
itself in a timeout if not successful.
|
code » | ||
![]()
Connect this transport.
|
code » | ||
![]()
Delivers queued messages.
|
code » | ||
![]()
No description.
|
code » | ||
![]()
Process incoming message.
|
code » | ||
![]()
Send a 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 channel this transport belongs to.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Callback function which wraps deliverQueued_.
|
Code » | |
![]()
Array for queued messages.
|
Code » | |
![]()
Flag used to enforce asynchronous messaging semantics.
|
Code » | |
![]()
Timer used to enforce asynchronous message delivery.
|
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 » |
![]()
Holds the function to send messages to the peer
(once it becomes available).
|
Code » | |
![]()
No description.
|
Code » |