| 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_;
|
|
|