Index: chrome/browser/prerender/prerender_contents.h |
=================================================================== |
--- chrome/browser/prerender/prerender_contents.h (revision 109294) |
+++ chrome/browser/prerender/prerender_contents.h (working copy) |
@@ -82,6 +82,9 @@ |
virtual ~PrerenderContents(); |
+ // Initializes the prerendering. This can fail if the URL to be prerendered |
+ // was recently visited. If false is returned, the caller should |
+ // destroy the PrerenderContents object. |
bool Init(); |
static Factory* CreateFactory(); |
@@ -106,6 +109,7 @@ |
int32 page_id() const { return page_id_; } |
GURL icon_url() const { return icon_url_; } |
const GURL& prerender_url() const { return prerender_url_; } |
+ const GURL& referrer() const { return referrer_; } |
bool has_stopped_loading() const { return has_stopped_loading_; } |
bool prerendering_has_started() const { return prerendering_has_started_; } |
@@ -124,6 +128,7 @@ |
FinalStatus final_status() const { return final_status_; } |
Origin origin() const { return origin_; } |
+ uint8 experiment_id() const { return experiment_id_; } |
base::TimeTicks load_start_time() const { return load_start_time_; } |
@@ -153,8 +158,10 @@ |
// Adds an alias URL, for one of the many redirections. If the URL can not |
// be prerendered - for example, it's an ftp URL - |this| will be destroyed |
// and false is returned. Otherwise, true is returned and the alias is |
- // remembered. |
- virtual bool AddAliasURL(const GURL& url); |
+ // remembered. If destroy_on_failure is set to false, no actual destruction |
+ // will happen, but the caller will have to take care of deleting the object |
+ // himself. |
+ virtual bool AddAliasURL(const GURL& url, bool destroy_on_failure); |
dominich
2011/11/11 20:02:09
I've been through the CL but I don't understand wh
|
// The preview TabContents (may be null). |
TabContentsWrapper* prerender_contents() const { |