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

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

Issue 8503040: Prerendering: Add MatchComplete PPLT (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 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 {

Powered by Google App Engine
This is Rietveld 408576698