Add PrerenderResourceHandler and hook it into the ResourceDispatcherHost.
The PrerenderResourceHandler will initiate prerendering of a web page under the following conditions:
- The initial request is a GET for a ResourceType::PREFETCH resource.
- The mime-type (sniffed or explicitly specified) of the resource is text/html.
- The response status code is a 200.
- The top-level page will not need to be revalidated until after it's guaranteed to be removed from potential use.
The handler passes along all data to the backing resource handler.
BUG=
61745
TEST=unit_tests --gtest_filter="PrerenderResourceHandlerTest*"
Manual Test: Start Chrome with --enable-page-prerender. Go to a page with a <link rel=prefetch> element. Navigate to that element, and make sure that it uses the prerendered view.
Committed:
http://src.chromium.org/viewvc/chrome?view=rev&revision=71162