OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 | 713 |
714 // Informs the renderer that the one if its notifications has closed. | 714 // Informs the renderer that the one if its notifications has closed. |
715 IPC_MESSAGE_ROUTED1(ViewMsg_PermissionRequestDone, | 715 IPC_MESSAGE_ROUTED1(ViewMsg_PermissionRequestDone, |
716 int /* request_id */) | 716 int /* request_id */) |
717 | 717 |
718 // Activate/deactivate the RenderView (i.e., set its controls' tint | 718 // Activate/deactivate the RenderView (i.e., set its controls' tint |
719 // accordingly, etc.). | 719 // accordingly, etc.). |
720 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, | 720 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, |
721 bool /* active */) | 721 bool /* active */) |
722 | 722 |
723 // Response message to ViewHostMsg_CreateDedicatedWorker. Sent when the | 723 // Response message to ViewHostMsg_CreateShared/DedicatedWorker. |
724 // worker has started. | 724 // Sent when the worker has started. |
725 IPC_MESSAGE_ROUTED0(ViewMsg_DedicatedWorkerCreated) | 725 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerCreated) |
726 | 726 |
727 // Tell the renderer which browser window it's being attached to. | 727 // Tell the renderer which browser window it's being attached to. |
728 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId, | 728 IPC_MESSAGE_ROUTED1(ViewMsg_UpdateBrowserWindowId, |
729 int /* id of browser window */) | 729 int /* id of browser window */) |
730 | 730 |
731 // Tell the renderer which type this view is. | 731 // Tell the renderer which type this view is. |
732 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, | 732 IPC_MESSAGE_ROUTED1(ViewMsg_NotifyRenderViewType, |
733 ViewType::Type /* view_type */) | 733 ViewType::Type /* view_type */) |
734 | 734 |
735 // Notification that renderer should run some JavaScript code. | 735 // Notification that renderer should run some JavaScript code. |
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1703 #endif | 1703 #endif |
1704 | 1704 |
1705 // A renderer sends this to the browser process when it wants to create a | 1705 // A renderer sends this to the browser process when it wants to create a |
1706 // worker. The browser will create the worker process if necessary, and | 1706 // worker. The browser will create the worker process if necessary, and |
1707 // will return the route id on success. On error returns MSG_ROUTING_NONE. | 1707 // will return the route id on success. On error returns MSG_ROUTING_NONE. |
1708 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateDedicatedWorker, | 1708 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateDedicatedWorker, |
1709 GURL /* url */, | 1709 GURL /* url */, |
1710 int /* render_view_route_id */, | 1710 int /* render_view_route_id */, |
1711 int /* route_id */) | 1711 int /* route_id */) |
1712 | 1712 |
| 1713 // A renderer sends this to the browser process when it wants to create a |
| 1714 // shared worker. The browser will create the worker process if necessary, |
| 1715 // and will return the route id on success. On error returns |
| 1716 // MSG_ROUTING_NONE. |
| 1717 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_CreateSharedWorker, |
| 1718 GURL /* url */, |
| 1719 string16 /* name */, |
| 1720 int /* render_view_route_id */, |
| 1721 int /* route_id */) |
| 1722 |
1713 // A message sent to the browser on behalf of a renderer which wants to show | 1723 // A message sent to the browser on behalf of a renderer which wants to show |
1714 // a desktop notification. | 1724 // a desktop notification. |
1715 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDesktopNotification, | 1725 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDesktopNotification, |
1716 GURL /* origin */, | 1726 GURL /* origin */, |
1717 GURL /* contents_url */, | 1727 GURL /* contents_url */, |
1718 int /* notification_id */) | 1728 int /* notification_id */) |
1719 IPC_MESSAGE_ROUTED5(ViewHostMsg_ShowDesktopNotificationText, | 1729 IPC_MESSAGE_ROUTED5(ViewHostMsg_ShowDesktopNotificationText, |
1720 GURL /* origin */, | 1730 GURL /* origin */, |
1721 GURL /* icon_url */, | 1731 GURL /* icon_url */, |
1722 string16 /* title */, | 1732 string16 /* title */, |
1723 string16 /* text */, | 1733 string16 /* text */, |
1724 int /* notification_id */) | 1734 int /* notification_id */) |
1725 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelDesktopNotification, | 1735 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelDesktopNotification, |
1726 int /* notification_id */ ) | 1736 int /* notification_id */ ) |
1727 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestNotificationPermission, | 1737 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestNotificationPermission, |
1728 GURL /* origin */, | 1738 GURL /* origin */, |
1729 int /* callback_context */) | 1739 int /* callback_context */) |
1730 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CheckNotificationPermission, | 1740 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CheckNotificationPermission, |
1731 GURL /* origin */, | 1741 GURL /* origin */, |
1732 int /* permission_result */) | 1742 int /* permission_result */) |
1733 | 1743 |
1734 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker | 1744 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker |
1735 // message and not received a ViewMsg_DedicatedWorkerCreated reply, but in the | 1745 // message and not received a ViewMsg_WorkerCreated reply, but in the |
1736 // mean time it's destroyed. This tells the browser to not create the queued | 1746 // mean time it's destroyed. This tells the browser to not create the queued |
1737 // worker. | 1747 // worker. |
1738 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker, | 1748 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker, |
1739 int /* route_id */) | 1749 int /* route_id */) |
1740 | 1750 |
1741 // Wraps an IPC message that's destined to the worker on the renderer->browser | 1751 // Wraps an IPC message that's destined to the worker on the renderer->browser |
1742 // hop. | 1752 // hop. |
1743 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 1753 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, |
1744 IPC::Message /* message */) | 1754 IPC::Message /* message */) |
1745 | 1755 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1966 | 1976 |
1967 // Asks the browser process to generate a keypair for grabbing a client | 1977 // Asks the browser process to generate a keypair for grabbing a client |
1968 // certificate from a CA (<keygen> tag), and returns the signed public | 1978 // certificate from a CA (<keygen> tag), and returns the signed public |
1969 // key and challenge string. | 1979 // key and challenge string. |
1970 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen, | 1980 IPC_SYNC_MESSAGE_CONTROL3_1(ViewHostMsg_Keygen, |
1971 uint32 /* key size index */, | 1981 uint32 /* key size index */, |
1972 std::string /* challenge string */, | 1982 std::string /* challenge string */, |
1973 GURL /* URL of requestor */, | 1983 GURL /* URL of requestor */, |
1974 std::string /* signed public key and challenge */) | 1984 std::string /* signed public key and challenge */) |
1975 IPC_END_MESSAGES(ViewHost) | 1985 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |