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/navigation_gesture.h" | 12 #include "content/common/navigation_gesture.h" |
13 #include "content/common/navigation_params.h" | 13 #include "content/common/navigation_params.h" |
14 #include "content/common/resource_request_body.h" | 14 #include "content/common/resource_request_body.h" |
15 #include "content/public/common/color_suggestion.h" | 15 #include "content/public/common/color_suggestion.h" |
16 #include "content/public/common/common_param_traits.h" | 16 #include "content/public/common/common_param_traits.h" |
17 #include "content/public/common/context_menu_params.h" | 17 #include "content/public/common/context_menu_params.h" |
18 #include "content/public/common/frame_navigate_params.h" | 18 #include "content/public/common/frame_navigate_params.h" |
19 #include "content/public/common/javascript_message_type.h" | 19 #include "content/public/common/javascript_message_type.h" |
20 #include "content/public/common/page_state.h" | 20 #include "content/public/common/page_state.h" |
| 21 #include "content/public/common/resource_response.h" |
21 #include "ipc/ipc_message_macros.h" | 22 #include "ipc/ipc_message_macros.h" |
22 #include "ui/gfx/ipc/gfx_param_traits.h" | 23 #include "ui/gfx/ipc/gfx_param_traits.h" |
23 #include "url/gurl.h" | 24 #include "url/gurl.h" |
24 | 25 |
25 #undef IPC_MESSAGE_EXPORT | 26 #undef IPC_MESSAGE_EXPORT |
26 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 27 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
27 | 28 |
28 #define IPC_MESSAGE_START FrameMsgStart | 29 #define IPC_MESSAGE_START FrameMsgStart |
29 | 30 |
30 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, | 31 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 // External popup menus. | 462 // External popup menus. |
462 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, | 463 IPC_MESSAGE_ROUTED1(FrameMsg_SelectPopupMenuItem, |
463 int /* selected index, -1 means no selection */) | 464 int /* selected index, -1 means no selection */) |
464 | 465 |
465 #endif | 466 #endif |
466 | 467 |
467 // PlzNavigate | 468 // PlzNavigate |
468 // Tells the renderer that a navigation is ready to commit. The renderer should | 469 // Tells the renderer that a navigation is ready to commit. The renderer should |
469 // request |stream_url| to get access to the stream containing the body of the | 470 // request |stream_url| to get access to the stream containing the body of the |
470 // response. | 471 // response. |
471 IPC_MESSAGE_ROUTED3(FrameMsg_CommitNavigation, | 472 IPC_MESSAGE_ROUTED4(FrameMsg_CommitNavigation, |
| 473 content::ResourceResponseHead, |
472 GURL, /* stream_url */ | 474 GURL, /* stream_url */ |
473 content::CommonNavigationParams, /* common_params */ | 475 content::CommonNavigationParams, /* common_params */ |
474 content::CommitNavigationParams /* commit_params */) | 476 content::CommitNavigationParams /* commit_params */) |
475 | 477 |
476 // ----------------------------------------------------------------------------- | 478 // ----------------------------------------------------------------------------- |
477 // Messages sent from the renderer to the browser. | 479 // Messages sent from the renderer to the browser. |
478 | 480 |
479 // Blink and JavaScript error messages to log to the console | 481 // Blink and JavaScript error messages to log to the console |
480 // or debugger UI. | 482 // or debugger UI. |
481 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 483 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 748 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
747 | 749 |
748 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 750 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
749 | 751 |
750 // Message to show/hide a popup menu using native controls. | 752 // Message to show/hide a popup menu using native controls. |
751 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 753 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
752 FrameHostMsg_ShowPopup_Params) | 754 FrameHostMsg_ShowPopup_Params) |
753 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 755 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
754 | 756 |
755 #endif | 757 #endif |
OLD | NEW |