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

Unified Diff: chrome/common/render_messages.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/web_drop_target.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.h
===================================================================
--- chrome/common/render_messages.h (revision 3991)
+++ chrome/common/render_messages.h (working copy)
@@ -41,6 +41,10 @@
// The URL to load.
GURL url;
+ // The URL to send in the "Referer" header field. Can be empty if there is
+ // no referrer.
+ GURL referrer;
+
// The type of transition.
PageTransition::Type transition;
@@ -749,6 +753,7 @@
static void Write(Message* m, const param_type& p) {
WriteParam(m, p.page_id);
WriteParam(m, p.url);
+ WriteParam(m, p.referrer);
WriteParam(m, p.transition);
WriteParam(m, p.state);
WriteParam(m, p.reload);
@@ -757,6 +762,7 @@
return
ReadParam(m, iter, &p->page_id) &&
ReadParam(m, iter, &p->url) &&
+ ReadParam(m, iter, &p->referrer) &&
ReadParam(m, iter, &p->transition) &&
ReadParam(m, iter, &p->state) &&
ReadParam(m, iter, &p->reload);
« no previous file with comments | « chrome/browser/web_drop_target.cc ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698