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

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

Issue 6255005: Browser test for prerendering in general (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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
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();

Powered by Google App Engine
This is Rietveld 408576698