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

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

Issue 7210020: Added prerendering to omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 9 years, 6 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
« 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 8a8de5281fe6041d9f76bd52b6912aa339dfbf72..47cba321046cb2cf96c20a33554d32dab60bd82e 100644
--- a/chrome/browser/prerender/prerender_contents.h
+++ b/chrome/browser/prerender/prerender_contents.h
@@ -60,7 +60,8 @@ class PrerenderContents : public NotificationObserver,
PrerenderTracker* prerender_tracker,
Profile* profile,
const GURL& url,
- const GURL& referrer) = 0;
+ const GURL& referrer,
+ Origin origin) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(Factory);
@@ -167,7 +168,8 @@ class PrerenderContents : public NotificationObserver,
PrerenderTracker* prerender_tracker,
Profile* profile,
const GURL& url,
- const GURL& referrer);
+ const GURL& referrer,
+ Origin origin);
NotificationRegistrar& notification_registrar() {
return notification_registrar_;
@@ -270,6 +272,9 @@ class PrerenderContents : public NotificationObserver,
// Page ID at which prerendering started.
int32 starting_page_id_;
+ // Origin for this prerender.
+ Origin origin_;
+
// Offset by which to offset prerendered pages
static const int32 kPrerenderPageIdOffset = 10;
« 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