| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
| 10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, | 37 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, |
| 38 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, | 38 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, |
| 39 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) | 39 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) |
| 40 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, | 40 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, |
| 41 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) | 41 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) |
| 42 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value, | 42 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value, |
| 43 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST) | 43 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST) |
| 44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, | 44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, |
| 45 blink::WebContextMenuData::MediaTypeLast) | 45 blink::WebContextMenuData::MediaTypeLast) |
| 46 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) | 46 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) |
| 47 IPC_ENUM_TRAITS(content::SandboxFlags) // Bitmask. |
| 47 | 48 |
| 48 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) | 49 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) |
| 49 IPC_STRUCT_TRAITS_MEMBER(color) | 50 IPC_STRUCT_TRAITS_MEMBER(color) |
| 50 IPC_STRUCT_TRAITS_MEMBER(label) | 51 IPC_STRUCT_TRAITS_MEMBER(label) |
| 51 IPC_STRUCT_TRAITS_END() | 52 IPC_STRUCT_TRAITS_END() |
| 52 | 53 |
| 53 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) | 54 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) |
| 54 IPC_STRUCT_TRAITS_MEMBER(media_type) | 55 IPC_STRUCT_TRAITS_MEMBER(media_type) |
| 55 IPC_STRUCT_TRAITS_MEMBER(x) | 56 IPC_STRUCT_TRAITS_MEMBER(x) |
| 56 IPC_STRUCT_TRAITS_MEMBER(y) | 57 IPC_STRUCT_TRAITS_MEMBER(y) |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 IPC_STRUCT_TRAITS_END() | 220 IPC_STRUCT_TRAITS_END() |
| 220 | 221 |
| 221 IPC_STRUCT_TRAITS_BEGIN(content::CommitNavigationParams) | 222 IPC_STRUCT_TRAITS_BEGIN(content::CommitNavigationParams) |
| 222 IPC_STRUCT_TRAITS_MEMBER(page_state) | 223 IPC_STRUCT_TRAITS_MEMBER(page_state) |
| 223 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) | 224 IPC_STRUCT_TRAITS_MEMBER(is_overriding_user_agent) |
| 224 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) | 225 IPC_STRUCT_TRAITS_MEMBER(browser_navigation_start) |
| 225 IPC_STRUCT_TRAITS_END() | 226 IPC_STRUCT_TRAITS_END() |
| 226 | 227 |
| 227 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) | 228 IPC_STRUCT_TRAITS_BEGIN(content::FrameReplicationState) |
| 228 IPC_STRUCT_TRAITS_MEMBER(origin) | 229 IPC_STRUCT_TRAITS_MEMBER(origin) |
| 230 IPC_STRUCT_TRAITS_MEMBER(sandbox_flags) |
| 229 IPC_STRUCT_TRAITS_END() | 231 IPC_STRUCT_TRAITS_END() |
| 230 | 232 |
| 231 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) | 233 IPC_STRUCT_BEGIN(FrameMsg_Navigate_Params) |
| 232 // TODO(clamy): investigate which parameters are also needed in PlzNavigate | 234 // TODO(clamy): investigate which parameters are also needed in PlzNavigate |
| 233 // and move them to the appropriate NavigationParams struct. | 235 // and move them to the appropriate NavigationParams struct. |
| 234 | 236 |
| 235 // These structs contain parameters shared by other navigation IPCs. | 237 // These structs contain parameters shared by other navigation IPCs. |
| 236 IPC_STRUCT_MEMBER(content::CommonNavigationParams, common_params) | 238 IPC_STRUCT_MEMBER(content::CommonNavigationParams, common_params) |
| 237 IPC_STRUCT_MEMBER(content::RequestNavigationParams, request_params) | 239 IPC_STRUCT_MEMBER(content::RequestNavigationParams, request_params) |
| 238 IPC_STRUCT_MEMBER(content::CommitNavigationParams, commit_params) | 240 IPC_STRUCT_MEMBER(content::CommitNavigationParams, commit_params) |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 content::CustomContextMenuContext /* custom_context */, | 379 content::CustomContextMenuContext /* custom_context */, |
| 378 unsigned /* action */) | 380 unsigned /* action */) |
| 379 | 381 |
| 380 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. | 382 // Requests that the RenderFrame or RenderFrameProxy sets its opener to null. |
| 381 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) | 383 IPC_MESSAGE_ROUTED0(FrameMsg_DisownOpener) |
| 382 | 384 |
| 383 // Instructs the renderer to create a new RenderFrame object with |routing_id|. | 385 // Instructs the renderer to create a new RenderFrame object with |routing_id|. |
| 384 // The new frame should be created as a child of the object identified by | 386 // The new frame should be created as a child of the object identified by |
| 385 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. | 387 // |parent_routing_id| or as top level if that is MSG_ROUTING_NONE. |
| 386 // If a valid |proxy_routing_id| is provided, the new frame will be configured | 388 // If a valid |proxy_routing_id| is provided, the new frame will be configured |
| 387 // to replace the proxy on commit. | 389 // to replace the proxy on commit. When the new frame has a parent, |
| 388 IPC_MESSAGE_CONTROL3(FrameMsg_NewFrame, | 390 // |replication_state| holds properties replicated from the process rendering |
| 391 // the parent frame, such as the new frame's sandbox flags. |
| 392 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrame, |
| 389 int /* routing_id */, | 393 int /* routing_id */, |
| 390 int /* parent_routing_id */, | 394 int /* parent_routing_id */, |
| 391 int /* proxy_routing_id */) | 395 int /* proxy_routing_id */, |
| 396 content::FrameReplicationState /* replication_state */) |
| 392 | 397 |
| 393 // Instructs the renderer to create a new RenderFrameProxy object with | 398 // Instructs the renderer to create a new RenderFrameProxy object with |
| 394 // |routing_id|. The new proxy should be created as a child of the object | 399 // |routing_id|. The new proxy should be created as a child of the object |
| 395 // identified by |parent_routing_id| or as top level if that is | 400 // identified by |parent_routing_id| or as top level if that is |
| 396 // MSG_ROUTING_NONE. | 401 // MSG_ROUTING_NONE. |
| 397 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, | 402 IPC_MESSAGE_CONTROL4(FrameMsg_NewFrameProxy, |
| 398 int /* routing_id */, | 403 int /* routing_id */, |
| 399 int /* parent_routing_id */, | 404 int /* parent_routing_id */, |
| 400 int /* render_view_routing_id */, | 405 int /* render_view_routing_id */, |
| 401 content::FrameReplicationState /* replication_state */) | 406 content::FrameReplicationState /* replication_state */) |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 558 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
| 554 int32, /* log level */ | 559 int32, /* log level */ |
| 555 base::string16, /* msg */ | 560 base::string16, /* msg */ |
| 556 int32, /* line number */ | 561 int32, /* line number */ |
| 557 base::string16 /* source id */ ) | 562 base::string16 /* source id */ ) |
| 558 | 563 |
| 559 // Sent by the renderer when a child frame is created in the renderer. | 564 // Sent by the renderer when a child frame is created in the renderer. |
| 560 // | 565 // |
| 561 // Each of these messages will have a corresponding FrameHostMsg_Detach message | 566 // Each of these messages will have a corresponding FrameHostMsg_Detach message |
| 562 // sent when the frame is detached from the DOM. | 567 // sent when the frame is detached from the DOM. |
| 563 IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_CreateChildFrame, | 568 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_CreateChildFrame, |
| 564 int32 /* parent_routing_id */, | 569 int32 /* parent_routing_id */, |
| 565 std::string /* frame_name */, | 570 std::string /* frame_name */, |
| 571 content::SandboxFlags /* sandbox flags */, |
| 566 int32 /* new_routing_id */) | 572 int32 /* new_routing_id */) |
| 567 | 573 |
| 568 // Sent by the renderer to the parent RenderFrameHost when a child frame is | 574 // Sent by the renderer to the parent RenderFrameHost when a child frame is |
| 569 // detached from the DOM. | 575 // detached from the DOM. |
| 570 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach) | 576 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach) |
| 571 | 577 |
| 572 // Sent by the renderer when the frame becomes focused. | 578 // Sent by the renderer when the frame becomes focused. |
| 573 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused) | 579 IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused) |
| 574 | 580 |
| 575 // Sent when the renderer starts a provisional load for a frame. | 581 // Sent when the renderer starts a provisional load for a frame. |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 837 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
| 832 | 838 |
| 833 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 839 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 834 | 840 |
| 835 // Message to show/hide a popup menu using native controls. | 841 // Message to show/hide a popup menu using native controls. |
| 836 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 842 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 837 FrameHostMsg_ShowPopup_Params) | 843 FrameHostMsg_ShowPopup_Params) |
| 838 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 844 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 839 | 845 |
| 840 #endif | 846 #endif |
| OLD | NEW |