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

Unified Diff: content/browser/tab_contents/navigation_entry.h

Issue 8806011: Make NavigationEntry and friends use content::Referrer instead of plain URLs (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
Index: content/browser/tab_contents/navigation_entry.h
diff --git a/content/browser/tab_contents/navigation_entry.h b/content/browser/tab_contents/navigation_entry.h
index 8648ebbf30618aa4db62c6e257fe831876b90ee0..6b139a189d74efa858fb23cd4bf549fc7129c873 100644
--- a/content/browser/tab_contents/navigation_entry.h
+++ b/content/browser/tab_contents/navigation_entry.h
@@ -14,6 +14,7 @@
#include "content/common/content_export.h"
#include "content/public/common/page_transition_types.h"
#include "content/public/common/page_type.h"
+#include "content/public/common/referrer.h"
#include "content/public/common/security_style.h"
#include "googleurl/src/gurl.h"
#include "net/base/cert_status_flags.h"
@@ -185,7 +186,7 @@ class CONTENT_EXPORT NavigationEntry {
NavigationEntry(SiteInstance* instance,
int page_id,
const GURL& url,
- const GURL& referrer,
+ const content::Referrer& referrer,
const string16& title,
content::PageTransition transition_type,
bool is_renderer_initiated);
@@ -237,10 +238,10 @@ class CONTENT_EXPORT NavigationEntry {
}
// The referring URL. Can be empty.
- void set_referrer(const GURL& referrer) {
+ void set_referrer(const content::Referrer& referrer) {
referrer_ = referrer;
}
- const GURL& referrer() const {
+ const content::Referrer& referrer() const {
return referrer_;
}
@@ -434,7 +435,7 @@ class CONTENT_EXPORT NavigationEntry {
scoped_refptr<SiteInstance> site_instance_;
content::PageType page_type_;
GURL url_;
- GURL referrer_;
+ content::Referrer referrer_;
GURL virtual_url_;
bool update_virtual_url_with_url_;
string16 title_;
« no previous file with comments | « content/browser/tab_contents/navigation_controller_unittest.cc ('k') | content/browser/tab_contents/navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698