tmpnetwork.js
No description.

File Location

/goog/net/tmpnetwork.js


Public Protected Private

Global Functions

goog.net.tmpnetwork.clearImageCallbacks_(img)
Clear handlers to avoid memory leaks.
Arguments:
img : Image
The image to clear handlers from.
code »
goog.net.tmpnetwork.testLoadImage&img.onabort()
No description.
code »
goog.net.tmpnetwork.testLoadImage&img.onerror()
No description.
code »
goog.net.tmpnetwork.testLoadImage&img.onload()
No description.
code »
goog.net.tmpnetwork.testLoadImage&img.ontimeout()
No description.
code »
goog.net.tmpnetwork.testGoogleCom(callbackopt_imageUri)
Pings the network to check if an error is a server error or user's network error.
Arguments:
callback : Function
The function to call back with results.
opt_imageUri : goog.Uri?=
The URI of an image to use for the network test. You *must* provide an image URI; the default behavior is provided for compatibility with existing code, but the search team does not want people using images served off of google.com for this purpose. The default will go away when all usages have been changed.
code »
goog.net.tmpnetwork.testLoadImage(urltimeoutcallback)
Test loading the given image.
Arguments:
url : string
URL to the iamge.
timeout : number
Milliseconds before giving up.
callback : Function
Function to call with results.
code »
goog.net.tmpnetwork.testLoadImageWithRetries(urltimeoutcallbackretriesopt_pauseBetweenRetriesMS)
Test loading the given image, retrying if necessary.
Arguments:
url : string
URL to the iamge.
timeout : number
Milliseconds before giving up.
callback : Function
Function to call with results.
retries : number
The number of times to retry.
opt_pauseBetweenRetriesMS : number=
Optional number of milliseconds between retries - defaults to 0.
code »

Directory net

File Reference