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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 // ViewHostMsg_ShowWidget to inform the renderer that the browser has | 669 // ViewHostMsg_ShowWidget to inform the renderer that the browser has |
670 // processed the move. The browser may have ignored the move, but it finished | 670 // processed the move. The browser may have ignored the move, but it finished |
671 // processing. This is used because the renderer keeps a temporary cache of | 671 // processing. This is used because the renderer keeps a temporary cache of |
672 // the widget position while these asynchronous operations are in progress. | 672 // the widget position while these asynchronous operations are in progress. |
673 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK) | 673 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK) |
674 | 674 |
675 // Used to instruct the RenderView to send back updates to the intrinsic | 675 // Used to instruct the RenderView to send back updates to the intrinsic |
676 // width. | 676 // width. |
677 IPC_MESSAGE_ROUTED0(ViewMsg_EnableIntrinsicWidthChangedMode) | 677 IPC_MESSAGE_ROUTED0(ViewMsg_EnableIntrinsicWidthChangedMode) |
678 | 678 |
| 679 // Used to inform the renderer that the browser has displayed its |
| 680 // requested notification. |
| 681 IPC_MESSAGE_ROUTED1(ViewMsg_PostDisplayToNotificationObject, |
| 682 int /* notification_id */) |
| 683 |
| 684 // Used to inform the renderer that the browser has encountered an error |
| 685 // trying to display a notification. |
| 686 IPC_MESSAGE_ROUTED2(ViewMsg_PostErrorToNotificationObject, |
| 687 int /* notification_id */, |
| 688 string16 /* message */) |
| 689 |
| 690 // Informs the renderer that the one if its notifications has closed. |
| 691 IPC_MESSAGE_ROUTED2(ViewMsg_PostCloseToNotificationObject, |
| 692 int /* notification_id */, |
| 693 bool /* by_user */) |
| 694 |
| 695 // Informs the renderer that the one if its notifications has closed. |
| 696 IPC_MESSAGE_ROUTED1(ViewMsg_PermissionRequestDone, |
| 697 int /* request_id */) |
| 698 |
679 // Activate/deactivate the RenderView (i.e., set its controls' tint | 699 // Activate/deactivate the RenderView (i.e., set its controls' tint |
680 // accordingly, etc.). | 700 // accordingly, etc.). |
681 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, | 701 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, |
682 bool /* active */) | 702 bool /* active */) |
683 | 703 |
684 // Response message to ViewHostMsg_CreateDedicatedWorker. Sent when the | 704 // Response message to ViewHostMsg_CreateDedicatedWorker. Sent when the |
685 // worker has started. | 705 // worker has started. |
686 IPC_MESSAGE_ROUTED0(ViewMsg_DedicatedWorkerCreated) | 706 IPC_MESSAGE_ROUTED0(ViewMsg_DedicatedWorkerCreated) |
687 | 707 |
688 // Tell the renderer which browser window it's being attached to. | 708 // Tell the renderer which browser window it's being attached to. |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 #endif | 1595 #endif |
1576 | 1596 |
1577 // A renderer sends this to the browser process when it wants to create a | 1597 // A renderer sends this to the browser process when it wants to create a |
1578 // worker. The browser will create the worker process if necessary, and | 1598 // worker. The browser will create the worker process if necessary, and |
1579 // will return the route id on success. On error returns MSG_ROUTING_NONE. | 1599 // will return the route id on success. On error returns MSG_ROUTING_NONE. |
1580 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateDedicatedWorker, | 1600 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateDedicatedWorker, |
1581 GURL /* url */, | 1601 GURL /* url */, |
1582 int /* render_view_route_id */, | 1602 int /* render_view_route_id */, |
1583 int /* route_id */) | 1603 int /* route_id */) |
1584 | 1604 |
| 1605 // A message sent to the browser on behalf of a renderer which wants to show |
| 1606 // a desktop notification. |
| 1607 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDesktopNotification, |
| 1608 GURL /* origin */, |
| 1609 GURL /* contents_url */, |
| 1610 int /* notification_id */) |
| 1611 IPC_MESSAGE_ROUTED5(ViewHostMsg_ShowDesktopNotificationText, |
| 1612 GURL /* origin */, |
| 1613 GURL /* icon_url */, |
| 1614 string16 /* title */, |
| 1615 string16 /* text */, |
| 1616 int /* notification_id */) |
| 1617 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelDesktopNotification, |
| 1618 int /* notification_id */ ) |
| 1619 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestNotificationPermission, |
| 1620 string16 /* origin */, |
| 1621 int /* callback_context */) |
| 1622 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CheckNotificationPermission, |
| 1623 string16 /* origin */, |
| 1624 int /* permission_result */) |
| 1625 |
1585 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker | 1626 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker |
1586 // message and not received a ViewMsg_DedicatedWorkerCreated reply, but in the | 1627 // message and not received a ViewMsg_DedicatedWorkerCreated reply, but in the |
1587 // mean time it's destroyed. This tells the browser to not create the queued | 1628 // mean time it's destroyed. This tells the browser to not create the queued |
1588 // worker. | 1629 // worker. |
1589 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker, | 1630 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker, |
1590 int /* route_id */) | 1631 int /* route_id */) |
1591 | 1632 |
1592 // Wraps an IPC message that's destined to the worker on the renderer->browser | 1633 // Wraps an IPC message that's destined to the worker on the renderer->browser |
1593 // hop. | 1634 // hop. |
1594 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 1635 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1752 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, | 1793 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, |
1753 FilePath /* the name of the file */, | 1794 FilePath /* the name of the file */, |
1754 int32 /* a unique message ID */) | 1795 int32 /* a unique message ID */) |
1755 | 1796 |
1756 // Asks the browser process to return the size of a DB file | 1797 // Asks the browser process to return the size of a DB file |
1757 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, | 1798 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, |
1758 FilePath /* the name of the file */, | 1799 FilePath /* the name of the file */, |
1759 int32 /* a unique message ID */) | 1800 int32 /* a unique message ID */) |
1760 | 1801 |
1761 IPC_END_MESSAGES(ViewHost) | 1802 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |