goog.net.BrowserTestChannel |
channel
: goog.net.BrowserChannel
The BrowserChannel that owns this
test channel.
|
channelDebug
: goog.net.ChannelDebug
A ChannelDebug to use for
logging.
|
![]()
Aborts the test channel.
|
code » | |||
![]()
Callback for testLoadImageWithRetries to check if browser channel is
blocked.
Arguments:
|
code » | |||
![]()
Checks to see whether the channel is blocked. This is for implementing the
feature that allows network administrators to block Gmail Chat. The
strategy to determine if we're blocked is to try to load an image off a
special subdomain that network administrators will block access to if they
are trying to block chat. For Gmail Chat, the subdomain is
chatenabled.mail.google.com.
|
code » | |||
No description.
Returns: boolean
True if test stage 2 detected a non-buffered
channel early and early no buffering detection is enabled.
|
code » | |||
![]()
Starts the test channel. This initiates connections to the server.
Arguments:
|
code » | |||
![]()
Begins the second stage of the test channel where we test to see if we're
behind a buffering proxy. The server sends back a multi-chunked response
with the first chunk containing the content '1' and then two seconds later
sending the second chunk containing the content '2'. Depending on how we
receive the content, we can tell if we're behind a buffering proxy.
|
code » | |||
Factory method for XhrIo objects.
Arguments:
Returns: !goog.net.XhrIo
New XhrIo object.
|
code » | |||
Returns the last status code received for a request.
Returns: number
The last status code received for a request.
|
code » | |||
Gets whether this channel is currently active. This is used to determine the
length of time to wait before retrying.
Arguments:
Returns: boolean
Whether the channel is currently active.
|
code » | |||
Returns whether the test channel is closed. The ChannelRequest object expects
this method to be implemented on its handler.
Returns: boolean
Whether the channel is closed.
|
code » | |||
![]()
Notifies the channel of a fine grained network event.
Arguments:
|
code » | |||
![]()
Callback from ChannelRequest that indicates a request has completed.
Arguments:
|
code » | |||
![]()
Callback from ChannelRequest for when new data is received
Arguments:
|
code » | |||
![]()
Sets extra HTTP headers to add to all the requests sent to the server.
Arguments:
|
code » | |||
![]()
Sets a new parser for the response payload. A custom parser may be set to
avoid using eval(), for example.
By default, the parser uses
goog.json.unsafeParse .
Arguments:
|
code » | |||
No description.
Returns: boolean
Whether we should be using secondary domains when the
server instructs us to do so.
|
code » |
![]()
A subdomain prefix for testing whether the channel was disabled by
a network administrator;
|
Code » | |
The channel debug to use for logging
|
Code » | |
The BrowserChannel that owns this test channel
|
Code » | |
![]()
Extra HTTP headers to add to all the requests sent to the server.
|
Code » | |
![]()
The time for of the first result part. We use timing in IE as a
heuristic for whether we're behind a buffering proxy.
|
Code » | |
![]()
A subdomain prefix for using a subdomain in IE for the backchannel
requests.
|
Code » | |
![]()
The last status code received.
|
Code » | |
![]()
The time for of the last result part. We use timing in IE as a
heuristic for whether we're behind a buffering proxy.
|
Code » | |
Parser for a response payload. Defaults to use
goog.json.unsafeParse . The parser should return an array.
|
Code » | |
![]()
The relative path for test requests.
|
Code » | |
![]()
Whether we have received the first result as an intermediate result. This
helps us determine whether we're behind a buffering proxy.
|
Code » | |
The test request.
|
Code » | |
![]()
The time when the test request was started. We use timing in IE as
a heuristic for whether we're behind a buffering proxy.
|
Code » | |
![]()
The state of the state machine for this object.
|
Code » |
![]()
Time in ms between retries of the blocked request
|
Code » | |
![]()
Number of attempts to try to see if the check to see if we're blocked
succeeds. Sometimes the request can fail because of flaky network conditions
and checking multiple times reduces false positives.
|
Code » | |
![]()
Time in MS for waiting for the request to see if the channel is blocked.
If the response takes longer than this many ms, we assume the request has
failed.
|
Code » | |
![]()
Time between chunks in the test connection that indicates that we
are not behind a buffering proxy. This value should be less than or
equals to the time between chunks sent from the server.
|
Code » |
![]()
Enum type for the browser test channel state machine
Constants:
|
Code » |