| 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_);
|
|
|