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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "content/public/common/push_messaging_status.h" | 10 #include "content/public/common/push_messaging_status.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess, | 79 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess, |
80 int32_t /* request_id */, | 80 int32_t /* request_id */, |
81 blink::WebPushPermissionStatus /* status */) | 81 blink::WebPushPermissionStatus /* status */) |
82 | 82 |
83 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusError, | 83 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusError, |
84 int32_t /* request_id */, | 84 int32_t /* request_id */, |
85 blink::WebPushError::ErrorType /* error_type */) | 85 blink::WebPushError::ErrorType /* error_type */) |
86 | 86 |
87 // Messages sent from the child process to the browser. | 87 // Messages sent from the child process to the browser. |
88 | 88 |
89 IPC_MESSAGE_CONTROL4(PushMessagingHostMsg_SubscribeFromDocument, | 89 // |render_frame_id| should be ChildProcessHost::kInvalidUniqueID for requests |
| 90 // from a Service Worker. |
| 91 IPC_MESSAGE_CONTROL4(PushMessagingHostMsg_Subscribe, |
90 int32_t /* render_frame_id */, | 92 int32_t /* render_frame_id */, |
91 int32_t /* request_id */, | 93 int32_t /* request_id */, |
92 content::PushSubscriptionOptions /* options */, | |
93 int64_t /* service_worker_registration_id */) | |
94 | |
95 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_SubscribeFromWorker, | |
96 int32_t /* request_id */, | |
97 int64_t /* service_worker_registration_id */, | 94 int64_t /* service_worker_registration_id */, |
98 content::PushSubscriptionOptions /* options */) | 95 content::PushSubscriptionOptions /* options */) |
99 | 96 |
100 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unsubscribe, | 97 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unsubscribe, |
101 int32_t /* request_id */, | 98 int32_t /* request_id */, |
102 int64_t /* service_worker_registration_id */) | 99 int64_t /* service_worker_registration_id */) |
103 | 100 |
104 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetSubscription, | 101 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetSubscription, |
105 int32_t /* request_id */, | 102 int32_t /* request_id */, |
106 int64_t /* service_worker_registration_id */) | 103 int64_t /* service_worker_registration_id */) |
107 | 104 |
108 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus, | 105 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus, |
109 int32_t /* request_id */, | 106 int32_t /* request_id */, |
110 int64_t /* service_worker_registration_id */, | 107 int64_t /* service_worker_registration_id */, |
111 bool /* user_visible */) | 108 bool /* user_visible */) |
OLD | NEW |