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

Unified Diff: chrome/browser/navigation_entry.h

Issue 8186: Plumb the referrer throughout the OpenURL APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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/navigation_controller_unittest.cc ('k') | chrome/browser/navigation_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/navigation_entry.h
===================================================================
--- chrome/browser/navigation_entry.h (revision 3991)
+++ chrome/browser/navigation_entry.h (working copy)
@@ -167,6 +167,7 @@
SiteInstance* instance,
int page_id,
const GURL& url,
+ const GURL& referrer,
const std::wstring& title,
PageTransition::Type transition_type);
~NavigationEntry() {
@@ -225,6 +226,14 @@
return url_;
}
+ // The referring URL. Can be empty.
+ void set_referrer(const GURL& referrer) {
+ referrer_ = referrer;
+ }
+ const GURL& referrer() const {
+ return referrer_;
+ }
+
// The display URL, when nonempty, will override the actual URL of the page
// when we display it to the user. This allows us to have nice and friendly
// URLs that the user sees for things like about: URLs, but actually feed
@@ -362,6 +371,11 @@
scoped_refptr<SiteInstance> site_instance_;
PageType page_type_;
GURL url_;
+
+ // TODO(eroman): Add referrer to session restore.
+ // http://code.google.com/p/chromium/issues/detail?id=3774
+ GURL referrer_;
+
std::wstring url_as_string_;
GURL display_url_;
std::wstring title_;
« no previous file with comments | « chrome/browser/navigation_controller_unittest.cc ('k') | chrome/browser/navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698