OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "base/process.h" | 8 #include "base/process.h" |
9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
434 | 434 |
435 // The status code of the HTTP request. | 435 // The status code of the HTTP request. |
436 IPC_STRUCT_MEMBER(int, http_status_code) | 436 IPC_STRUCT_MEMBER(int, http_status_code) |
437 | 437 |
438 // True if the connection was proxied. In this case, socket_address | 438 // True if the connection was proxied. In this case, socket_address |
439 // will represent the address of the proxy, rather than the remote host. | 439 // will represent the address of the proxy, rather than the remote host. |
440 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy) | 440 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy) |
441 | 441 |
442 // Serialized history item state to store in the navigation entry. | 442 // Serialized history item state to store in the navigation entry. |
443 IPC_STRUCT_MEMBER(std::string, content_state) | 443 IPC_STRUCT_MEMBER(std::string, content_state) |
444 | |
445 // Original request's URL. | |
446 IPC_STRUCT_MEMBER(GURL, original_request_url) | |
447 | |
448 // User agent override used to navigate. | |
449 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent) | |
444 IPC_STRUCT_END() | 450 IPC_STRUCT_END() |
445 | 451 |
446 // This message is used for supporting popup menus on Mac OS X using native | 452 // This message is used for supporting popup menus on Mac OS X using native |
447 // Cocoa controls. The renderer sends us this message which we use to populate | 453 // Cocoa controls. The renderer sends us this message which we use to populate |
448 // the popup menu. | 454 // the popup menu. |
449 IPC_STRUCT_BEGIN(ViewHostMsg_ShowPopup_Params) | 455 IPC_STRUCT_BEGIN(ViewHostMsg_ShowPopup_Params) |
450 // Position on the screen. | 456 // Position on the screen. |
451 IPC_STRUCT_MEMBER(gfx::Rect, bounds) | 457 IPC_STRUCT_MEMBER(gfx::Rect, bounds) |
452 | 458 |
453 // The height of each item in the menu. | 459 // The height of each item in the menu. |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
621 | 627 |
622 // The following two members identify a previous request that has been | 628 // The following two members identify a previous request that has been |
623 // created before this navigation is being transferred to a new render view. | 629 // created before this navigation is being transferred to a new render view. |
624 // This serves the purpose of recycling the old request. | 630 // This serves the purpose of recycling the old request. |
625 // Unless this refers to a transferred navigation, these values are -1 and -1. | 631 // Unless this refers to a transferred navigation, these values are -1 and -1. |
626 IPC_STRUCT_MEMBER(int, transferred_request_child_id) | 632 IPC_STRUCT_MEMBER(int, transferred_request_child_id) |
627 IPC_STRUCT_MEMBER(int, transferred_request_request_id) | 633 IPC_STRUCT_MEMBER(int, transferred_request_request_id) |
628 | 634 |
629 // Whether or not we should allow the url to download. | 635 // Whether or not we should allow the url to download. |
630 IPC_STRUCT_MEMBER(bool, allow_download) | 636 IPC_STRUCT_MEMBER(bool, allow_download) |
637 | |
638 // Whether or not the user agent override string should be used. | |
639 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
| |
631 IPC_STRUCT_END() | 640 IPC_STRUCT_END() |
632 | 641 |
633 IPC_STRUCT_BEGIN(ViewMsg_New_Params) | 642 IPC_STRUCT_BEGIN(ViewMsg_New_Params) |
634 // The parent window's id. | 643 // The parent window's id. |
635 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) | 644 IPC_STRUCT_MEMBER(gfx::NativeViewId, parent_window) |
636 | 645 |
637 // Renderer-wide preferences. | 646 // Renderer-wide preferences. |
638 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) | 647 IPC_STRUCT_MEMBER(content::RendererPreferences, renderer_preferences) |
639 | 648 |
640 // Preferences for this view. | 649 // Preferences for this view. |
(...skipping 11 matching lines...) Expand all Loading... | |
652 // The name of the frame associated with this view (or empty if none). | 661 // The name of the frame associated with this view (or empty if none). |
653 IPC_STRUCT_MEMBER(string16, frame_name) | 662 IPC_STRUCT_MEMBER(string16, frame_name) |
654 | 663 |
655 // The route ID of the opener RenderView if we need to set one | 664 // The route ID of the opener RenderView if we need to set one |
656 // (MSG_ROUTING_NONE otherwise). | 665 // (MSG_ROUTING_NONE otherwise). |
657 IPC_STRUCT_MEMBER(int, opener_route_id) | 666 IPC_STRUCT_MEMBER(int, opener_route_id) |
658 | 667 |
659 // Whether the RenderView should initially be swapped out. | 668 // Whether the RenderView should initially be swapped out. |
660 IPC_STRUCT_MEMBER(bool, swapped_out) | 669 IPC_STRUCT_MEMBER(bool, swapped_out) |
661 | 670 |
671 // The user agent given to WebKit when it requests one and the user agent is | |
672 // being overridden for the current navigation. | |
673 IPC_STRUCT_MEMBER(std::string, user_agent_override) | |
674 | |
662 // The initial page ID to use for this view, which must be larger than any | 675 // The initial page ID to use for this view, which must be larger than any |
663 // existing navigation that might be loaded in the view. Page IDs are unique | 676 // existing navigation that might be loaded in the view. Page IDs are unique |
664 // to a view and are only updated by the renderer after this initial value. | 677 // to a view and are only updated by the renderer after this initial value. |
665 IPC_STRUCT_MEMBER(int32, next_page_id) | 678 IPC_STRUCT_MEMBER(int32, next_page_id) |
666 | 679 |
667 // The properties of the screen associated with the view. | 680 // The properties of the screen associated with the view. |
668 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) | 681 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) |
669 | 682 |
670 // The name of the channel with which a guest talks to its embedder. | 683 // The name of the channel with which a guest talks to its embedder. |
671 // If this newly created RenderView has no embedder this string will be | 684 // If this newly created RenderView has no embedder this string will be |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
725 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, | 738 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, |
726 int /* CPU usage in percents */) | 739 int /* CPU usage in percents */) |
727 | 740 |
728 // Tells the renderer to create a new view. | 741 // Tells the renderer to create a new view. |
729 // This message is slightly different, the view it takes (via | 742 // This message is slightly different, the view it takes (via |
730 // ViewMsg_New_Params) is the view to create, the message itself is sent as a | 743 // ViewMsg_New_Params) is the view to create, the message itself is sent as a |
731 // non-view control message. | 744 // non-view control message. |
732 IPC_MESSAGE_CONTROL1(ViewMsg_New, | 745 IPC_MESSAGE_CONTROL1(ViewMsg_New, |
733 ViewMsg_New_Params) | 746 ViewMsg_New_Params) |
734 | 747 |
748 // Set the user agent override used by the renderer. | |
749 IPC_MESSAGE_ROUTED1(ViewMsg_SetUserAgentOverride, | |
750 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
| |
751 | |
735 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. | 752 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. |
736 // similar to the new command, but used when the renderer created a view | 753 // similar to the new command, but used when the renderer created a view |
737 // first, and we need to update it. | 754 // first, and we need to update it. |
738 IPC_MESSAGE_ROUTED1(ViewMsg_CreatingNew_ACK, | 755 IPC_MESSAGE_ROUTED1(ViewMsg_CreatingNew_ACK, |
739 gfx::NativeViewId /* parent_hwnd */) | 756 gfx::NativeViewId /* parent_hwnd */) |
740 | 757 |
741 // Sends updated preferences to the renderer. | 758 // Sends updated preferences to the renderer. |
742 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, | 759 IPC_MESSAGE_ROUTED1(ViewMsg_SetRendererPrefs, |
743 content::RendererPreferences) | 760 content::RendererPreferences) |
744 | 761 |
(...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2055 // (according to the value of is_hung). The browser can give the user the | 2072 // (according to the value of is_hung). The browser can give the user the |
2056 // option of killing the plugin. | 2073 // option of killing the plugin. |
2057 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, | 2074 IPC_MESSAGE_ROUTED3(ViewHostMsg_PepperPluginHung, |
2058 int /* plugin_child_id */, | 2075 int /* plugin_child_id */, |
2059 FilePath /* path */, | 2076 FilePath /* path */, |
2060 bool /* is_hung */) | 2077 bool /* is_hung */) |
2061 | 2078 |
2062 // Screen was rotated. Dispatched to the onorientationchange javascript API. | 2079 // Screen was rotated. Dispatched to the onorientationchange javascript API. |
2063 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, | 2080 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, |
2064 int /* orientation */) | 2081 int /* orientation */) |
OLD | NEW |