Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 194079: renderer process notifications support (Closed)
Patch Set: last change for code review Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 // ViewHostMsg_ShowWidget to inform the renderer that the browser has 682 // ViewHostMsg_ShowWidget to inform the renderer that the browser has
683 // processed the move. The browser may have ignored the move, but it finished 683 // processed the move. The browser may have ignored the move, but it finished
684 // processing. This is used because the renderer keeps a temporary cache of 684 // processing. This is used because the renderer keeps a temporary cache of
685 // the widget position while these asynchronous operations are in progress. 685 // the widget position while these asynchronous operations are in progress.
686 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK) 686 IPC_MESSAGE_ROUTED0(ViewMsg_Move_ACK)
687 687
688 // Used to instruct the RenderView to send back updates to the intrinsic 688 // Used to instruct the RenderView to send back updates to the intrinsic
689 // width. 689 // width.
690 IPC_MESSAGE_ROUTED0(ViewMsg_EnableIntrinsicWidthChangedMode) 690 IPC_MESSAGE_ROUTED0(ViewMsg_EnableIntrinsicWidthChangedMode)
691 691
692 // Used to inform the renderer that the browser has displayed its
693 // requested notification.
694 IPC_MESSAGE_ROUTED1(ViewMsg_PostDisplayToNotificationObject,
695 int /* notification_id */)
696
697 // Used to inform the renderer that the browser has encountered an error
698 // trying to display a notification.
699 IPC_MESSAGE_ROUTED2(ViewMsg_PostErrorToNotificationObject,
700 int /* notification_id */,
701 string16 /* message */)
702
703 // Informs the renderer that the one if its notifications has closed.
704 IPC_MESSAGE_ROUTED2(ViewMsg_PostCloseToNotificationObject,
705 int /* notification_id */,
706 bool /* by_user */)
707
708 // Informs the renderer that the one if its notifications has closed.
709 IPC_MESSAGE_ROUTED1(ViewMsg_PermissionRequestDone,
710 int /* request_id */)
711
692 // Activate/deactivate the RenderView (i.e., set its controls' tint 712 // Activate/deactivate the RenderView (i.e., set its controls' tint
693 // accordingly, etc.). 713 // accordingly, etc.).
694 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive, 714 IPC_MESSAGE_ROUTED1(ViewMsg_SetActive,
695 bool /* active */) 715 bool /* active */)
696 716
697 // Response message to ViewHostMsg_CreateDedicatedWorker. Sent when the 717 // Response message to ViewHostMsg_CreateDedicatedWorker. Sent when the
698 // worker has started. 718 // worker has started.
699 IPC_MESSAGE_ROUTED0(ViewMsg_DedicatedWorkerCreated) 719 IPC_MESSAGE_ROUTED0(ViewMsg_DedicatedWorkerCreated)
700 720
701 // Tell the renderer which browser window it's being attached to. 721 // Tell the renderer which browser window it's being attached to.
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
1603 #endif 1623 #endif
1604 1624
1605 // A renderer sends this to the browser process when it wants to create a 1625 // A renderer sends this to the browser process when it wants to create a
1606 // worker. The browser will create the worker process if necessary, and 1626 // worker. The browser will create the worker process if necessary, and
1607 // will return the route id on success. On error returns MSG_ROUTING_NONE. 1627 // will return the route id on success. On error returns MSG_ROUTING_NONE.
1608 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateDedicatedWorker, 1628 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateDedicatedWorker,
1609 GURL /* url */, 1629 GURL /* url */,
1610 int /* render_view_route_id */, 1630 int /* render_view_route_id */,
1611 int /* route_id */) 1631 int /* route_id */)
1612 1632
1633 // A message sent to the browser on behalf of a renderer which wants to show
1634 // a desktop notification.
1635 IPC_MESSAGE_ROUTED3(ViewHostMsg_ShowDesktopNotification,
1636 GURL /* origin */,
1637 GURL /* contents_url */,
1638 int /* notification_id */)
1639 IPC_MESSAGE_ROUTED5(ViewHostMsg_ShowDesktopNotificationText,
1640 GURL /* origin */,
1641 GURL /* icon_url */,
1642 string16 /* title */,
1643 string16 /* text */,
1644 int /* notification_id */)
1645 IPC_MESSAGE_ROUTED1(ViewHostMsg_CancelDesktopNotification,
1646 int /* notification_id */ )
1647 IPC_MESSAGE_ROUTED2(ViewHostMsg_RequestNotificationPermission,
1648 string16 /* origin */,
1649 int /* callback_context */)
1650 IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_CheckNotificationPermission,
1651 string16 /* origin */,
1652 int /* permission_result */)
1653
1613 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker 1654 // Sent if the worker object has sent a ViewHostMsg_CreateDedicatedWorker
1614 // message and not received a ViewMsg_DedicatedWorkerCreated reply, but in the 1655 // message and not received a ViewMsg_DedicatedWorkerCreated reply, but in the
1615 // mean time it's destroyed. This tells the browser to not create the queued 1656 // mean time it's destroyed. This tells the browser to not create the queued
1616 // worker. 1657 // worker.
1617 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker, 1658 IPC_MESSAGE_CONTROL1(ViewHostMsg_CancelCreateDedicatedWorker,
1618 int /* route_id */) 1659 int /* route_id */)
1619 1660
1620 // Wraps an IPC message that's destined to the worker on the renderer->browser 1661 // Wraps an IPC message that's destined to the worker on the renderer->browser
1621 // hop. 1662 // hop.
1622 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, 1663 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes, 1821 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileAttributes,
1781 FilePath /* the name of the file */, 1822 FilePath /* the name of the file */,
1782 int32 /* a unique message ID */) 1823 int32 /* a unique message ID */)
1783 1824
1784 // Asks the browser process to return the size of a DB file 1825 // Asks the browser process to return the size of a DB file
1785 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize, 1826 IPC_MESSAGE_CONTROL2(ViewHostMsg_DatabaseGetFileSize,
1786 FilePath /* the name of the file */, 1827 FilePath /* the name of the file */,
1787 int32 /* a unique message ID */) 1828 int32 /* a unique message ID */)
1788 1829
1789 IPC_END_MESSAGES(ViewHost) 1830 IPC_END_MESSAGES(ViewHost)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698