Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: chrome/browser/prerender/prerender_contents.cc

Issue 6255005: Browser test for prerendering in general (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Added missing file (again) Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prerender/prerender_contents.h ('k') | chrome/browser/prerender/prerender_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_contents.cc
===================================================================
--- chrome/browser/prerender/prerender_contents.cc (revision 72537)
+++ chrome/browser/prerender/prerender_contents.cc (working copy)
@@ -20,6 +20,15 @@
#include "chrome/common/render_messages_params.h"
#include "gfx/rect.h"
+class PrerenderContentsFactoryImpl : public PrerenderContents::Factory {
+ public:
+ virtual PrerenderContents* CreatePrerenderContents(
+ PrerenderManager* prerender_manager, Profile* profile, const GURL& url,
+ const std::vector<GURL>& alias_urls) {
+ return new PrerenderContents(prerender_manager, profile, url, alias_urls);
+ }
+};
+
PrerenderContents::PrerenderContents(PrerenderManager* prerender_manager,
Profile* profile,
const GURL& url,
@@ -38,6 +47,11 @@
}
}
+// static
+PrerenderContents::Factory* PrerenderContents::CreateFactory() {
+ return new PrerenderContentsFactoryImpl();
+}
+
void PrerenderContents::StartPrerendering() {
DCHECK(profile_ != NULL);
SiteInstance* site_instance = SiteInstance::CreateSiteInstance(profile_);
« no previous file with comments | « chrome/browser/prerender/prerender_contents.h ('k') | chrome/browser/prerender/prerender_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698