function PrerenderTask(shouldSucceed, finalStatus) {
  NetInternalsTest.Task.call(this);

  this.startedSuccessfulPrerender_ = false;
  this.url_ = null;
  this.shouldSucceed_ = shouldSucceed;
  this.finalStatus_ = finalStatus;
  this.state_ = STATE.NONE;
}
/**
 * Task that tries to prerender a page.  The URL is received from the previous
 * Task.  A loader page is opened in a background tab, which triggers the
 * prerender.  |shouldSucceed| indicates whether the prerender is expected to
 * succeed or not.  If it's false, we just wait for the page to fail, possibly
 * seeing it as active first.  If it's true, we navigate to the URL in the
 * background tab.
 *
 * Checks that we see all relevant events, and update the corresponding tables.
 * In both cases, we exit the test once we see the prerender in the history.
 * |finalStatus| is the expected status value when the page reaches the
 * history.
 *
 * @param {bool} shouldSucceed Whether or not the prerender should succeed.
 * @param {string} finalStatus The expected value of |final_status|.
 * @extends {NetInternalsTest.Task}
 * @constructor
 */
Task that tries to prerender a page.  The URL is received from the previous
Task.  A loader page is opened in a background tab, which triggers the
prerender.  |shouldSucceed| indicates whether the prerender is expected to
succeed or not.  If it's false, we just wait for the page to fail, possibly
seeing it as active first.  If it's true, we navigate to the URL in the
background tab.

Checks that we see all relevant events, and update the corresponding tables.
In both cases, we exit the test once we see the prerender in the history.
|finalStatus| is the expected status value when the page reaches the
history.

@param {bool} shouldSucceed Whether or not the prerender should succeed.
@param {string} finalStatus The expected value of |final_status|.
Task that tries to prerender a page . The URL is received from the previous Task . A loader page is opened in a background tab which triggers the prerender . |shouldSucceed| indicates whether the prerender is expected to succeed or not . If it ' s false we just wait for the page to fail possibly seeing it as active first . If it ' s true we navigate to the URL in the background tab . Checks that we see all relevant events and update the corresponding tables . In both cases we exit the test once we see the prerender in the history . |finalStatus| is the expected status value when the page reaches the history . @param { bool } shouldSucceed Whether or not the prerender should succeed . @param { string } finalStatus The expected value of |final_status| .
function PrerenderTask(shouldSucceed, finalStatus) {
  NetInternalsTest.Task.call(this);
  this.startedSuccessfulPrerender_ = false;
  this.url_ = null;
  this.shouldSucceed_ = shouldSucceed;
  this.finalStatus_ = finalStatus;
  this.state_ = STATE.NONE;
}
function PrerenderTask ( shouldSucceed , finalStatus ) { NetInternalsTest . Task . call ( this ) ; this . startedSuccessfulPrerender_ = false ; this . url_ = null ; this . shouldSucceed_ = shouldSucceed ; this . finalStatus_ = finalStatus ; this . state_ = STATE . NONE ; }
Task that tries to prerender a page.
Task that tries to prerender a page .