Index: content/common/view_messages.h |
diff --git a/content/common/view_messages.h b/content/common/view_messages.h |
index 106954877f7ac09e8bf924714201accb3ca1ba86..a967823bf23a89ef666fb868e1afe049cd5eaf84 100644 |
--- a/content/common/view_messages.h |
+++ b/content/common/view_messages.h |
@@ -441,6 +441,12 @@ IPC_STRUCT_BEGIN_WITH_PARENT(ViewHostMsg_FrameNavigate_Params, |
// Serialized history item state to store in the navigation entry. |
IPC_STRUCT_MEMBER(std::string, content_state) |
+ |
+ // Original request's URL. |
+ IPC_STRUCT_MEMBER(GURL, original_request_url) |
+ |
+ // User agent override used to navigate. |
+ IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) |
IPC_STRUCT_END() |
// This message is used for supporting popup menus on Mac OS X using native |
@@ -628,6 +634,9 @@ IPC_STRUCT_BEGIN(ViewMsg_Navigate_Params) |
// Whether or not we should allow the url to download. |
IPC_STRUCT_MEMBER(bool, allow_download) |
+ |
+ // Whether or not the user agent override string should be used. |
+ IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) |
Charlie Reis
2012/06/01 00:36:08
It's confusing to me that a single string is set f
gone
2012/06/01 01:04:06
I actually had something working like this downstr
Charlie Reis
2012/06/01 18:04:09
Usually it wouldn't. Only navigations that force
gone
2012/06/14 00:46:39
As per our meeting, I'm going to look at whether w
|
IPC_STRUCT_END() |
IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
@@ -659,6 +668,10 @@ IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
// Whether the RenderView should initially be swapped out. |
IPC_STRUCT_MEMBER(bool, swapped_out) |
+ // The user agent given to WebKit when it requests one and the user agent is |
+ // being overridden for the current navigation. |
+ IPC_STRUCT_MEMBER(std::string, user_agent_override) |
+ |
// The initial page ID to use for this view, which must be larger than any |
// existing navigation that might be loaded in the view. Page IDs are unique |
// to a view and are only updated by the renderer after this initial value. |
@@ -732,6 +745,10 @@ IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, |
IPC_MESSAGE_CONTROL1(ViewMsg_New, |
ViewMsg_New_Params) |
+// Set the user agent override used by the renderer. |
+IPC_MESSAGE_ROUTED1(ViewMsg_SetUserAgentOverride, |
+ std::string /* override to use */) |
tony
2012/05/31 17:25:00
Hmm, should we just add a bool to RendererPreferen
gone
2012/05/31 21:43:25
The RenderView may have already been created when
tony
2012/05/31 21:59:02
That's fine, you would just use ViewMsg_SetRendere
gone
2012/06/14 00:46:39
If I switch to calling RenderViewImpl::OnSetRender
|
+ |
// Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. |
// similar to the new command, but used when the renderer created a view |
// first, and we need to update it. |