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

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

Issue 8801012: Add support for content::Referrer to prerender (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years 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
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_contents.h
diff --git a/chrome/browser/prerender/prerender_contents.h b/chrome/browser/prerender/prerender_contents.h
index e6b7c390c60c95b8313bb87a184db650a699b648..e22a154c99c5f53757706451342397d49b1d262b 100644
--- a/chrome/browser/prerender/prerender_contents.h
+++ b/chrome/browser/prerender/prerender_contents.h
@@ -16,6 +16,7 @@
#include "chrome/browser/prerender/prerender_final_status.h"
#include "content/browser/tab_contents/tab_contents_observer.h"
#include "content/public/browser/notification_registrar.h"
+#include "content/public/common/referrer.h"
class Profile;
class RenderViewHost;
@@ -57,7 +58,7 @@ class PrerenderContents : public content::NotificationObserver,
PrerenderTracker* prerender_tracker,
Profile* profile,
const GURL& url,
- const GURL& referrer,
+ const content::Referrer& referrer,
Origin origin,
uint8 experiment_id) = 0;
@@ -67,11 +68,13 @@ class PrerenderContents : public content::NotificationObserver,
// Information on pages that the prerendered page has tried to prerender.
struct PendingPrerenderData {
- PendingPrerenderData(Origin origin, const GURL& url, const GURL& referrer);
+ PendingPrerenderData(Origin origin,
+ const GURL& url,
+ const content::Referrer& referrer);
Origin origin;
GURL url;
- GURL referrer;
+ content::Referrer referrer;
};
typedef std::list<PendingPrerenderData> PendingPrerenderList;
@@ -97,7 +100,7 @@ class PrerenderContents : public content::NotificationObserver,
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_; }
+ const content::Referrer& referrer() const { return referrer_; }
bool has_stopped_loading() const { return has_stopped_loading_; }
bool prerendering_has_started() const { return prerendering_has_started_; }
@@ -179,7 +182,7 @@ class PrerenderContents : public content::NotificationObserver,
// Adds a pending prerender to the list.
virtual void AddPendingPrerender(Origin origin,
const GURL& url,
- const GURL& referrer);
+ const content::Referrer& referrer);
// Returns true if |url| corresponds to a pending prerender.
bool IsPendingEntry(const GURL& url) const;
@@ -193,7 +196,7 @@ class PrerenderContents : public content::NotificationObserver,
PrerenderTracker* prerender_tracker,
Profile* profile,
const GURL& url,
- const GURL& referrer,
+ const content::Referrer& referrer,
Origin origin,
uint8 experiment_id);
@@ -236,7 +239,7 @@ class PrerenderContents : public content::NotificationObserver,
GURL prerender_url_;
// The referrer.
- GURL referrer_;
+ content::Referrer referrer_;
// The profile being used
Profile* profile_;
« no previous file with comments | « chrome/browser/prerender/prerender_browsertest.cc ('k') | chrome/browser/prerender/prerender_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698