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 13 matching lines...) Expand all Loading... |
24 IPC_ENUM_TRAITS_MAX_VALUE( | 24 IPC_ENUM_TRAITS_MAX_VALUE( |
25 blink::WebPushPermissionStatus, | 25 blink::WebPushPermissionStatus, |
26 blink::WebPushPermissionStatus::WebPushPermissionStatusLast) | 26 blink::WebPushPermissionStatus::WebPushPermissionStatusLast) |
27 | 27 |
28 IPC_ENUM_TRAITS_MAX_VALUE( | 28 IPC_ENUM_TRAITS_MAX_VALUE( |
29 blink::WebPushError::ErrorType, | 29 blink::WebPushError::ErrorType, |
30 blink::WebPushError::ErrorType::ErrorTypeLast) | 30 blink::WebPushError::ErrorType::ErrorTypeLast) |
31 | 31 |
32 // Messages sent from the browser to the child process. | 32 // Messages sent from the browser to the child process. |
33 | 33 |
34 IPC_MESSAGE_ROUTED3(PushMessagingMsg_SubscribeFromDocumentSuccess, | 34 IPC_MESSAGE_ROUTED2(PushMessagingMsg_SubscribeFromDocumentSuccess, |
35 int32_t /* request_id */, | 35 int32_t /* request_id */, |
36 GURL /* push_endpoint */, | 36 GURL /* push_endpoint */) |
37 std::string /* push_subscription_id */) | |
38 | 37 |
39 IPC_MESSAGE_CONTROL3(PushMessagingMsg_SubscribeFromWorkerSuccess, | 38 IPC_MESSAGE_CONTROL2(PushMessagingMsg_SubscribeFromWorkerSuccess, |
40 int32_t /* request_id */, | 39 int32_t /* request_id */, |
41 GURL /* push_endpoint */, | 40 GURL /* push_endpoint */) |
42 std::string /* push_subscription_id */) | |
43 | 41 |
44 IPC_MESSAGE_ROUTED2(PushMessagingMsg_SubscribeFromDocumentError, | 42 IPC_MESSAGE_ROUTED2(PushMessagingMsg_SubscribeFromDocumentError, |
45 int32_t /* request_id */, | 43 int32_t /* request_id */, |
46 content::PushRegistrationStatus /* status */) | 44 content::PushRegistrationStatus /* status */) |
47 | 45 |
48 IPC_MESSAGE_CONTROL2(PushMessagingMsg_SubscribeFromWorkerError, | 46 IPC_MESSAGE_CONTROL2(PushMessagingMsg_SubscribeFromWorkerError, |
49 int32_t /* request_id */, | 47 int32_t /* request_id */, |
50 content::PushRegistrationStatus /* status */) | 48 content::PushRegistrationStatus /* status */) |
51 | 49 |
52 IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnsubscribeSuccess, | 50 IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnsubscribeSuccess, |
53 int32_t /* request_id */, | 51 int32_t /* request_id */, |
54 bool /* did_unsubscribe */) | 52 bool /* did_unsubscribe */) |
55 | 53 |
56 IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnsubscribeError, | 54 IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnsubscribeError, |
57 int32_t /* request_id */, | 55 int32_t /* request_id */, |
58 blink::WebPushError::ErrorType /* error_type */, | 56 blink::WebPushError::ErrorType /* error_type */, |
59 std::string /* error_message */) | 57 std::string /* error_message */) |
60 | 58 |
61 IPC_MESSAGE_CONTROL3(PushMessagingMsg_GetRegistrationSuccess, | 59 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetRegistrationSuccess, |
62 int32_t /* request_id */, | 60 int32_t /* request_id */, |
63 GURL /* push_endpoint */, | 61 GURL /* push_endpoint */) |
64 std::string /* push_subscription_id */) | |
65 | 62 |
66 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetRegistrationError, | 63 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetRegistrationError, |
67 int32_t /* request_id */, | 64 int32_t /* request_id */, |
68 content::PushGetRegistrationStatus /* status */) | 65 content::PushGetRegistrationStatus /* status */) |
69 | 66 |
70 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess, | 67 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess, |
71 int32_t /* request_id */, | 68 int32_t /* request_id */, |
72 blink::WebPushPermissionStatus /* status */) | 69 blink::WebPushPermissionStatus /* status */) |
73 | 70 |
74 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusError, | 71 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusError, |
(...skipping 19 matching lines...) Expand all Loading... |
94 int64_t /* service_worker_registration_id */) | 91 int64_t /* service_worker_registration_id */) |
95 | 92 |
96 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetRegistration, | 93 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetRegistration, |
97 int32_t /* request_id */, | 94 int32_t /* request_id */, |
98 int64_t /* service_worker_registration_id */) | 95 int64_t /* service_worker_registration_id */) |
99 | 96 |
100 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus, | 97 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus, |
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 bool /* user_visible */) | 100 bool /* user_visible */) |
OLD | NEW |