goog.net.xpc.IframePollingTransport
Classgoog.net.xpc.IframePollingTransport
> goog.net.xpc.Transport
> goog.Disposable
goog.net.xpc.IframePollingTransport(channel, opt_domHelper)
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).
channel
{goog.net.xpc.CrossPageChannel
}
opt_domHelper
{goog.dom.DomHelper
=}
.IFRAME_PREFIX
{string
}The string used to prefix all iframe names and IDs.
goog.net.xpc.IframePollingTransport.Receiver
Classgoog.net.xpc.IframePollingTransport.Receiver … more
goog.net.xpc.IframePollingTransport.Sender
Classgoog.net.xpc.IframePollingTransport.Sender Utility class to send message-parts to a document from a different origin. … more
.addOnDisposeCallback(callback, opt_scope)
Inherited from goog.Disposable
.
Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.
callback
{!Function
}
opt_scope
{Object
=}
.connect()
Connects this transport.
.creationStack
{string
}Inherited from goog.Disposable
.
If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.
.dispose()
Inherited from goog.Disposable
.
Disposes of the object. If the object hasn't already been disposed of, calls {@link #disposeInternal}. Classes that extend {@code goog.Disposable} should override {@link #disposeInternal} in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.
void
}
.disposeInternal()
.getDisposed
[deprecated]Deprecated. Use {@link #isDisposed} instead.
Inherited from goog.Disposable
.
boolean
}
.getName()
Inherited from goog.net.xpc.Transport
.
Return the transport name.
string
}
.getPeerFrame_(frameName)
Safely retrieves the peer frame with the specified name.
frameName
{string
}
Window
}
.getType()
Inherited from goog.net.xpc.Transport
.
number
}
.getWindow()
Inherited from goog.net.xpc.Transport
.
Returns the window associated with this transport instance.
Window
}
.isChannelAvailable()
Determines whether the channel is still available. The channel is unavailable if the transport was disposed or the peer is no longer available.
boolean
}
.isDisposed()
Inherited from goog.Disposable
.
boolean
}
.processIncomingAck(msgStr)
Process an incoming acknowdedgement.
msgStr
{string
}
.processIncomingMsg(raw)
Processes an incoming message.
raw
{string
}
.registerDisposable(disposable)
Inherited from goog.Disposable
.
Associates a disposable object with this object so that they will be disposed together.
disposable
{goog.disposable.IDisposable
}
.send(service, payload)
Sends a message. Splits it in multiple frames if too long (exceeds IE's
URL-length maximum.
Wireformat: Inherited from Handles transport service messages (internal signalling).
The transport type.
service
{string
}
payload
{string
}
.transportServiceHandler(payload)
goog.net.xpc.Transport
.
payload
{string
}
.transportType
[protected] {number
}