OLD | NEW |
---|---|
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 // IPC messages for push messaging. | 5 // IPC messages for push messaging. |
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/push_messaging_status.h" | 8 #include "content/public/common/push_messaging_status.h" |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 #include "third_party/WebKit/public/platform/WebPushPermissionStatus.h" | 10 #include "third_party/WebKit/public/platform/WebPushPermissionStatus.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 int32 /* request_id */, | 48 int32 /* request_id */, |
49 blink::WebPushPermissionStatus /* status */) | 49 blink::WebPushPermissionStatus /* status */) |
50 | 50 |
51 // TODO(mvanouwerkerk): Delete this after switching to the platform code path. | 51 // TODO(mvanouwerkerk): Delete this after switching to the platform code path. |
52 IPC_MESSAGE_ROUTED1(PushMessagingMsg_PermissionStatusFailure, | 52 IPC_MESSAGE_ROUTED1(PushMessagingMsg_PermissionStatusFailure, |
53 int32 /* callback_id */) | 53 int32 /* callback_id */) |
54 | 54 |
55 IPC_MESSAGE_CONTROL1(PushMessagingMsg_GetPermissionStatusError, | 55 IPC_MESSAGE_CONTROL1(PushMessagingMsg_GetPermissionStatusError, |
56 int32 /* request_id */) | 56 int32 /* request_id */) |
57 | 57 |
58 IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnregisterResponse, | |
59 int32 /* request_id */, | |
60 bool /* response */) | |
Michael van Ouwerkerk
2014/12/12 13:55:41
success?
mlamouri (slow - plz ping)
2014/12/15 11:29:37
Done.
| |
61 | |
58 // Messages sent from the child process to the browser. | 62 // Messages sent from the child process to the browser. |
59 | 63 |
60 // TODO(mvanouwerkerk): Delete this when it is no longer used. | 64 // TODO(mvanouwerkerk): Delete this when it is no longer used. |
61 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_RegisterFromDocumentOld, | 65 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_RegisterFromDocumentOld, |
62 int32 /* render_frame_id */, | 66 int32 /* render_frame_id */, |
63 int32 /* request_id */, | 67 int32 /* request_id */, |
64 std::string /* sender_id */, | 68 std::string /* sender_id */, |
65 bool /* user_visible_only */, | 69 bool /* user_visible_only */, |
66 int32 /* service_worker_provider_id */) | 70 int32 /* service_worker_provider_id */) |
67 | 71 |
(...skipping 10 matching lines...) Expand all Loading... | |
78 | 82 |
79 // TODO(mvanouwerkerk): Delete this after switching to the platform code path. | 83 // TODO(mvanouwerkerk): Delete this after switching to the platform code path. |
80 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_PermissionStatus, | 84 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_PermissionStatus, |
81 int32 /* render_frame_id */, | 85 int32 /* render_frame_id */, |
82 int32 /* service_worker_provider_id */, | 86 int32 /* service_worker_provider_id */, |
83 int32 /* permission_callback_id */) | 87 int32 /* permission_callback_id */) |
84 | 88 |
85 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetPermissionStatus, | 89 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetPermissionStatus, |
86 int32 /* request_id */, | 90 int32 /* request_id */, |
87 int64 /* service_worker_registration_id */) | 91 int64 /* service_worker_registration_id */) |
92 | |
93 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unregister, | |
94 int32 /* request_id */, | |
95 int64 /* service_worker_registration_id */) | |
OLD | NEW |