Index: chrome/browser/prerender/prerender_contents.h |
=================================================================== |
--- chrome/browser/prerender/prerender_contents.h (revision 71995) |
+++ chrome/browser/prerender/prerender_contents.h (working copy) |
@@ -36,6 +36,16 @@ |
public NotificationObserver, |
public JavaScriptAppModalDialogDelegate { |
public: |
+ // PrerenderContents::Create uses the currently registered Factory to create |
+ // the PrerenderContents. Factory is intended for testing. |
+ class Factory { |
+ public: |
+ virtual PrerenderContents* CreatePrerenderContents( |
+ PrerenderManager* prerender_manager, Profile* profile, const GURL& url, |
+ const std::vector<GURL>& alias_urls) = 0; |
+ virtual ~Factory() {} |
+ }; |
+ |
PrerenderContents(PrerenderManager* prerender_manager, Profile* profile, |
const GURL& url, const std::vector<GURL>& alias_urls); |
virtual ~PrerenderContents(); |