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

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

Issue 803523002: Remove a renderer -> browser roundtrip for resolving the showNotification promise. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-rename-params
Patch Set: remove blank link Created 6 years 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
« no previous file with comments | « content/child/notifications/notification_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Messages for platform-native notifications using the Web Notification API. 5 // Messages for platform-native notifications using the Web Notification API.
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/platform_notification_data.h" 8 #include "content/public/common/platform_notification_data.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" 10 #include "third_party/WebKit/public/platform/WebNotificationPermission.h"
(...skipping 12 matching lines...) Expand all
23 IPC_STRUCT_TRAITS_MEMBER(title) 23 IPC_STRUCT_TRAITS_MEMBER(title)
24 IPC_STRUCT_TRAITS_MEMBER(direction) 24 IPC_STRUCT_TRAITS_MEMBER(direction)
25 IPC_STRUCT_TRAITS_MEMBER(lang) 25 IPC_STRUCT_TRAITS_MEMBER(lang)
26 IPC_STRUCT_TRAITS_MEMBER(body) 26 IPC_STRUCT_TRAITS_MEMBER(body)
27 IPC_STRUCT_TRAITS_MEMBER(tag) 27 IPC_STRUCT_TRAITS_MEMBER(tag)
28 IPC_STRUCT_TRAITS_MEMBER(icon) 28 IPC_STRUCT_TRAITS_MEMBER(icon)
29 IPC_STRUCT_TRAITS_END() 29 IPC_STRUCT_TRAITS_END()
30 30
31 // Messages sent from the browser to the renderer. 31 // Messages sent from the browser to the renderer.
32 32
33 // Informs the renderer that the browser has displayed the persistent
34 // notification.
35 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShowPersistent,
36 int /* request_id */)
37
38 // Informs the renderer that the browser has displayed the notification. 33 // Informs the renderer that the browser has displayed the notification.
39 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow, 34 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow,
40 int /* notification_id */) 35 int /* notification_id */)
41 36
42 // Informs the renderer that the notification has been closed. 37 // Informs the renderer that the notification has been closed.
43 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose, 38 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose,
44 int /* notification_id */) 39 int /* notification_id */)
45 40
46 // Informs the renderer that the notification has been clicked on. 41 // Informs the renderer that the notification has been clicked on.
47 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClick, 42 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClick,
48 int /* notification_id */) 43 int /* notification_id */)
49 44
50 // Messages sent from the renderer to the browser. 45 // Messages sent from the renderer to the browser.
51 46
52 IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_Show, 47 IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_Show,
53 int /* notification_id */, 48 int /* notification_id */,
54 GURL /* origin */, 49 GURL /* origin */,
55 SkBitmap /* icon */, 50 SkBitmap /* icon */,
56 content::PlatformNotificationData /* notification_data */) 51 content::PlatformNotificationData /* notification_data */)
57 52
58 IPC_MESSAGE_CONTROL5(PlatformNotificationHostMsg_ShowPersistent, 53 IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_ShowPersistent,
59 int /* request_id */,
60 int64 /* service_worker_provider_id */, 54 int64 /* service_worker_provider_id */,
61 GURL /* origin */, 55 GURL /* origin */,
62 SkBitmap /* icon */, 56 SkBitmap /* icon */,
63 content::PlatformNotificationData /* notification_data */) 57 content::PlatformNotificationData /* notification_data */)
64 58
65 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, 59 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close,
66 int /* notification_id */) 60 int /* notification_id */)
67 61
68 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_ClosePersistent, 62 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_ClosePersistent,
69 std::string /* persistent_notification_id */) 63 std::string /* persistent_notification_id */)
70 64
71 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission, 65 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission,
72 GURL /* origin */, 66 GURL /* origin */,
73 blink::WebNotificationPermission /* result */) 67 blink::WebNotificationPermission /* result */)
OLDNEW
« no previous file with comments | « content/child/notifications/notification_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698