summaryrefslogtreecommitdiffstats
path: root/content/common
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-03 21:03:15 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-03 21:03:15 +0000
commit445e1041110859afe8eaf163035db8a34dc556ac (patch)
treeec90f19b3e17690e6374782e1e98bfe79ff48199 /content/common
parent97fdd16c528bfd7f6ada18b97c3ea9b37e8bbe8f (diff)
downloadchromium_src-445e1041110859afe8eaf163035db8a34dc556ac.zip
chromium_src-445e1041110859afe8eaf163035db8a34dc556ac.tar.gz
chromium_src-445e1041110859afe8eaf163035db8a34dc556ac.tar.bz2
Pass along the referrer policy (renderer side)
BUG=105028 TEST=none (browser side still missing, does nothing yet) Review URL: http://codereview.chromium.org/8774050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common')
-rw-r--r--content/common/view_messages.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index ff07616..d818295 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -16,6 +16,7 @@
#include "content/public/common/file_chooser_params.h"
#include "content/public/common/frame_navigate_params.h"
#include "content/public/common/page_zoom.h"
+#include "content/public/common/referrer.h"
#include "content/public/common/renderer_preferences.h"
#include "content/public/common/stop_find_action.h"
#include "content/public/common/webkit_param_traits.h"
@@ -30,6 +31,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/base/range/range.h"
@@ -57,6 +59,7 @@ IPC_ENUM_TRAITS(ViewMsg_Navigate_Type::Value)
IPC_ENUM_TRAITS(WebKit::WebContextMenuData::MediaType)
IPC_ENUM_TRAITS(WebKit::WebMediaPlayerAction::Type)
IPC_ENUM_TRAITS(WebKit::WebPopupType)
+IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy)
IPC_ENUM_TRAITS(WebKit::WebTextDirection)
IPC_ENUM_TRAITS(WebMenuItem::Type)
IPC_ENUM_TRAITS(WindowContainerType)
@@ -260,6 +263,11 @@ IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams)
IPC_STRUCT_TRAITS_MEMBER(socket_address)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_TRAITS_BEGIN(content::Referrer)
+ IPC_STRUCT_TRAITS_MEMBER(url)
+ IPC_STRUCT_TRAITS_MEMBER(policy)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(content::RendererPreferences)
IPC_STRUCT_TRAITS_MEMBER(can_accept_load_drops)
IPC_STRUCT_TRAITS_MEMBER(should_antialias_text)
@@ -574,8 +582,7 @@ IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params)
// The URL to send in the "Referer" header field. Can be empty if there is
// no referrer.
- // TODO: consider folding this into extra_headers.
- IPC_STRUCT_MEMBER(GURL, referrer)
+ IPC_STRUCT_MEMBER(content::Referrer, referrer)
// The type of transition.
IPC_STRUCT_MEMBER(content::PageTransition, transition)
@@ -1582,7 +1589,7 @@ IPC_SYNC_MESSAGE_ROUTED4_2(ViewHostMsg_RunJavaScriptMessage,
// Requests that the given URL be opened in the specified manner.
IPC_MESSAGE_ROUTED4(ViewHostMsg_OpenURL,
GURL /* url */,
- GURL /* referrer */,
+ content::Referrer /* referrer */,
WindowOpenDisposition /* disposition */,
int64 /* frame id */)