| 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" |
| 11 #include "content/common/frame_param.h" | 11 #include "content/common/frame_param.h" |
| 12 #include "content/common/frame_replication_state.h" | 12 #include "content/common/frame_replication_state.h" |
| 13 #include "content/common/navigation_gesture.h" | 13 #include "content/common/navigation_gesture.h" |
| 14 #include "content/common/navigation_params.h" | 14 #include "content/common/navigation_params.h" |
| 15 #include "content/common/resource_request_body.h" | 15 #include "content/common/resource_request_body.h" |
| 16 #include "content/public/common/color_suggestion.h" | 16 #include "content/public/common/color_suggestion.h" |
| 17 #include "content/public/common/common_param_traits.h" | 17 #include "content/public/common/common_param_traits.h" |
| 18 #include "content/public/common/context_menu_params.h" | 18 #include "content/public/common/context_menu_params.h" |
| 19 #include "content/public/common/frame_navigate_params.h" | 19 #include "content/public/common/frame_navigate_params.h" |
| 20 #include "content/public/common/javascript_message_type.h" | 20 #include "content/public/common/javascript_message_type.h" |
| 21 #include "content/public/common/message_port_types.h" | 21 #include "content/public/common/message_port_types.h" |
| 22 #include "content/public/common/page_state.h" | 22 #include "content/public/common/page_state.h" |
| 23 #include "content/public/common/resource_response.h" | 23 #include "content/public/common/resource_response.h" |
| 24 #include "content/public/common/transition_element.h" | 24 #include "content/public/common/transition_element.h" |
| 25 #include "ipc/ipc_message_macros.h" | 25 #include "ipc/ipc_message_macros.h" |
| 26 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
| 26 #include "ui/gfx/ipc/gfx_param_traits.h" | 27 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 27 #include "url/gurl.h" | 28 #include "url/gurl.h" |
| 28 #include "url/origin.h" | 29 #include "url/origin.h" |
| 29 | 30 |
| 30 #undef IPC_MESSAGE_EXPORT | 31 #undef IPC_MESSAGE_EXPORT |
| 31 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 32 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 32 | 33 |
| 33 #define IPC_MESSAGE_START FrameMsgStart | 34 #define IPC_MESSAGE_START FrameMsgStart |
| 34 | 35 |
| 35 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, | 36 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, |
| 36 AccessibilityModeOff, | 37 AccessibilityModeOff, |
| 37 AccessibilityModeComplete) | 38 AccessibilityModeComplete) |
| 38 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, | 39 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, |
| 39 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, | 40 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, |
| 40 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) | 41 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) |
| 41 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, | 42 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, |
| 42 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) | 43 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) |
| 43 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value, | 44 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_UILoadMetricsReportType::Value, |
| 44 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST) | 45 FrameMsg_UILoadMetricsReportType::REPORT_TYPE_LAST) |
| 45 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, | 46 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, |
| 46 blink::WebContextMenuData::MediaTypeLast) | 47 blink::WebContextMenuData::MediaTypeLast) |
| 48 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTreeScopeType, |
| 49 blink::WebTreeScopeType::Last) |
| 47 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) | 50 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) |
| 48 IPC_ENUM_TRAITS(content::SandboxFlags) // Bitmask. | 51 IPC_ENUM_TRAITS(content::SandboxFlags) // Bitmask. |
| 49 | 52 |
| 50 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) | 53 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) |
| 51 IPC_STRUCT_TRAITS_MEMBER(color) | 54 IPC_STRUCT_TRAITS_MEMBER(color) |
| 52 IPC_STRUCT_TRAITS_MEMBER(label) | 55 IPC_STRUCT_TRAITS_MEMBER(label) |
| 53 IPC_STRUCT_TRAITS_END() | 56 IPC_STRUCT_TRAITS_END() |
| 54 | 57 |
| 55 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) | 58 IPC_STRUCT_TRAITS_BEGIN(content::ContextMenuParams) |
| 56 IPC_STRUCT_TRAITS_MEMBER(media_type) | 59 IPC_STRUCT_TRAITS_MEMBER(media_type) |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 631 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
| 629 int32, /* log level */ | 632 int32, /* log level */ |
| 630 base::string16, /* msg */ | 633 base::string16, /* msg */ |
| 631 int32, /* line number */ | 634 int32, /* line number */ |
| 632 base::string16 /* source id */ ) | 635 base::string16 /* source id */ ) |
| 633 | 636 |
| 634 // Sent by the renderer when a child frame is created in the renderer. | 637 // Sent by the renderer when a child frame is created in the renderer. |
| 635 // | 638 // |
| 636 // Each of these messages will have a corresponding FrameHostMsg_Detach message | 639 // Each of these messages will have a corresponding FrameHostMsg_Detach message |
| 637 // sent when the frame is detached from the DOM. | 640 // sent when the frame is detached from the DOM. |
| 638 IPC_SYNC_MESSAGE_CONTROL3_1(FrameHostMsg_CreateChildFrame, | 641 IPC_SYNC_MESSAGE_CONTROL4_1(FrameHostMsg_CreateChildFrame, |
| 639 int32 /* parent_routing_id */, | 642 int32 /* parent_routing_id */, |
| 643 blink::WebTreeScopeType /* scope */, |
| 640 std::string /* frame_name */, | 644 std::string /* frame_name */, |
| 641 content::SandboxFlags /* sandbox flags */, | 645 content::SandboxFlags /* sandbox flags */, |
| 642 int32 /* new_routing_id */) | 646 int32 /* new_routing_id */) |
| 643 | 647 |
| 644 // Sent by the renderer to the parent RenderFrameHost when a child frame is | 648 // Sent by the renderer to the parent RenderFrameHost when a child frame is |
| 645 // detached from the DOM. | 649 // detached from the DOM. |
| 646 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach) | 650 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach) |
| 647 | 651 |
| 648 // Indicates the renderer process is gone. This actually is sent by the | 652 // Indicates the renderer process is gone. This actually is sent by the |
| 649 // browser process to itself, but keeps the interface cleaner. | 653 // browser process to itself, but keeps the interface cleaner. |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 FrameMsg_PostMessage_Params) | 959 FrameMsg_PostMessage_Params) |
| 956 | 960 |
| 957 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 961 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 958 | 962 |
| 959 // Message to show/hide a popup menu using native controls. | 963 // Message to show/hide a popup menu using native controls. |
| 960 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 964 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 961 FrameHostMsg_ShowPopup_Params) | 965 FrameHostMsg_ShowPopup_Params) |
| 962 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 966 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 963 | 967 |
| 964 #endif | 968 #endif |
| OLD | NEW |