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

Side by Side Diff: content/common/desktop_notification_messages.h

Issue 687183004: Remove the OnError method from notification delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 desktop notification. 5 // IPC messages for desktop notification.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/public/common/show_desktop_notification_params.h" 8 #include "content/public/common/show_desktop_notification_params.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 10
11 #define IPC_MESSAGE_START DesktopNotificationMsgStart 11 #define IPC_MESSAGE_START DesktopNotificationMsgStart
12 12
13 IPC_STRUCT_TRAITS_BEGIN(content::ShowDesktopNotificationHostMsgParams) 13 IPC_STRUCT_TRAITS_BEGIN(content::ShowDesktopNotificationHostMsgParams)
14 IPC_STRUCT_TRAITS_MEMBER(origin) 14 IPC_STRUCT_TRAITS_MEMBER(origin)
15 IPC_STRUCT_TRAITS_MEMBER(icon) 15 IPC_STRUCT_TRAITS_MEMBER(icon)
16 IPC_STRUCT_TRAITS_MEMBER(title) 16 IPC_STRUCT_TRAITS_MEMBER(title)
17 IPC_STRUCT_TRAITS_MEMBER(body) 17 IPC_STRUCT_TRAITS_MEMBER(body)
18 IPC_STRUCT_TRAITS_MEMBER(direction) 18 IPC_STRUCT_TRAITS_MEMBER(direction)
19 IPC_STRUCT_TRAITS_MEMBER(replace_id) 19 IPC_STRUCT_TRAITS_MEMBER(replace_id)
20 IPC_STRUCT_TRAITS_END() 20 IPC_STRUCT_TRAITS_END()
21 21
22 // Messages sent from the browser to the renderer. 22 // Messages sent from the browser to the renderer.
23 23
24 // Used to inform the renderer that the browser has displayed its 24 // Used to inform the renderer that the browser has displayed its
25 // requested notification. 25 // requested notification.
26 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PostDisplay, 26 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PostDisplay,
27 int /* notification_id */) 27 int /* notification_id */)
28 28
29 // Used to inform the renderer that the browser has encountered an error
30 // trying to display a notification.
31 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PostError,
32 int /* notification_id */)
33
34 // Informs the renderer that the one if its notifications has closed. 29 // Informs the renderer that the one if its notifications has closed.
35 IPC_MESSAGE_ROUTED2(DesktopNotificationMsg_PostClose, 30 IPC_MESSAGE_ROUTED2(DesktopNotificationMsg_PostClose,
36 int /* notification_id */, 31 int /* notification_id */,
37 bool /* by_user */) 32 bool /* by_user */)
38 33
39 // Informs the renderer that one of its notifications was clicked on. 34 // Informs the renderer that one of its notifications was clicked on.
40 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PostClick, 35 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PostClick,
41 int /* notification_id */) 36 int /* notification_id */)
42 37
43 // Messages sent from the renderer to the browser. 38 // Messages sent from the renderer to the browser.
44 39
45 IPC_MESSAGE_ROUTED2(DesktopNotificationHostMsg_Show, 40 IPC_MESSAGE_ROUTED2(DesktopNotificationHostMsg_Show,
46 int /* notification_id */, 41 int /* notification_id */,
47 content::ShowDesktopNotificationHostMsgParams /* params */) 42 content::ShowDesktopNotificationHostMsgParams /* params */)
48 43
49 IPC_MESSAGE_ROUTED1(DesktopNotificationHostMsg_Cancel, 44 IPC_MESSAGE_ROUTED1(DesktopNotificationHostMsg_Cancel,
50 int /* notification_id */) 45 int /* notification_id */)
51 46
52 IPC_SYNC_MESSAGE_ROUTED1_1(DesktopNotificationHostMsg_CheckPermission, 47 IPC_SYNC_MESSAGE_ROUTED1_1(DesktopNotificationHostMsg_CheckPermission,
53 GURL /* origin */, 48 GURL /* origin */,
54 int /* permission_result */) 49 int /* permission_result */)
OLDNEW
« no previous file with comments | « content/child/notifications/notification_manager.cc ('k') | content/common/platform_notification_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698