goog.Disposable | |
goog.net.xpc.Transport | goog.Disposable |
goog.net.xpc.NixTransport | 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.
|
![]()
Attempts to setup the channel from the perspective
of the inner (read: iframe) page. This method
will attempt to *read* the opener object from the
page's opener property. If it succeeds, this object
is saved into nixChannel_ and the channel is confirmed
with the container by calling CreateChannel with an instance
of a wrapper for *this* page. Note that if this method
fails, it will continue to loop until it succeeds.
|
code » | ||
![]()
Attempts to setup the channel from the perspective
of the outer (read: container) page. This method
will attempt to create a NIX wrapper for this transport
and place it into the "opener" property of the inner
page's window object. If it fails, it will continue
to loop until it does so.
|
code » | ||
![]()
Connect this transport.
|
code » | ||
![]()
Internal method called by the inner page, via the
NIX wrapper, to complete the setup of the channel.
Arguments:
|
code » | ||
![]()
No description.
|
code » | ||
![]()
Internal method called by the other page, via the NIX wrapper,
to deliver a message.
|
code » | ||
![]()
Sends a message.
|
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 authorization token, if any, used by this transport.
|
Code » | |
The channel this transport belongs to.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Keeps track of whether the local setup has completed (i.e.
the initial work towards setting the channel up has been
completed for this end).
|
Code » | |
![]()
The NIX channel used to talk to the other page. This
object is in fact a reference to a VBScript class
(see above) and as such, is in fact a COM wrapper.
When using this object, make sure to not access methods
without calling them, otherwise a COM error will be thrown.
|
Code » | |
![]()
The authorization token, if any, that must be sent by the other party
for setup to occur.
|
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 » |
![]()
Conducts the global setup work for the NIX transport method.
This function creates and then injects into the page the
VBScript code necessary to create the NIX wrapper class.
Note that this method can be called multiple times, as
it internally checks whether the work is necessary before
proceeding.
Arguments:
|
code » | ||
Determines if the installed version of IE supports accessing window.opener
after it has been set to a non-Window/null value. NIX relies on this being
possible.
Returns: boolean
Whether window.opener behavior is compatible with NIX.
|
code » |
![]()
The name of the create channel method used by the wrapper class
when calling the transport.
|
Code » | |
![]()
Global name of the GetWrapper VBScript function. This
constant is used by JavaScript to call this function.
Note that this function will be stored in the *global*
namespace (i.e. window in browsers).
|
Code » | |
![]()
The name of the handle message method used by the wrapper class
when calling the transport.
|
Code » | |
![]()
A "unique" identifier that is stored in the wrapper
class so that the wrapper can be distinguished from
other objects easily.
|
Code » | |
![]()
Global name of the Wrapper VBScript class.
Note that this class will be stored in the *global*
namespace (i.e. window in browsers).
|
Code » | |
![]()
No description.
|
Code » |