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

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

Issue 2133673002: Push API: Implement and ship PushSubscription.options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 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 19 matching lines...) Expand all
30 blink::WebPushError::ErrorType, 30 blink::WebPushError::ErrorType,
31 blink::WebPushError::ErrorType::ErrorTypeLast) 31 blink::WebPushError::ErrorType::ErrorTypeLast)
32 32
33 IPC_STRUCT_TRAITS_BEGIN(content::PushSubscriptionOptions) 33 IPC_STRUCT_TRAITS_BEGIN(content::PushSubscriptionOptions)
34 IPC_STRUCT_TRAITS_MEMBER(user_visible_only) 34 IPC_STRUCT_TRAITS_MEMBER(user_visible_only)
35 IPC_STRUCT_TRAITS_MEMBER(sender_info) 35 IPC_STRUCT_TRAITS_MEMBER(sender_info)
36 IPC_STRUCT_TRAITS_END() 36 IPC_STRUCT_TRAITS_END()
37 37
38 // Messages sent from the browser to the child process. 38 // Messages sent from the browser to the child process.
39 39
40 IPC_MESSAGE_ROUTED4(PushMessagingMsg_SubscribeFromDocumentSuccess, 40 IPC_MESSAGE_ROUTED5(PushMessagingMsg_SubscribeFromDocumentSuccess,
41 int32_t /* request_id */, 41 int32_t /* request_id */,
42 GURL /* push_endpoint */, 42 GURL /* push_endpoint */,
43 content::PushSubscriptionOptions /* options */,
43 std::vector<uint8_t> /* p256dh */, 44 std::vector<uint8_t> /* p256dh */,
44 std::vector<uint8_t> /* auth */) 45 std::vector<uint8_t> /* auth */)
45 46
46 IPC_MESSAGE_CONTROL4(PushMessagingMsg_SubscribeFromWorkerSuccess, 47 IPC_MESSAGE_CONTROL5(PushMessagingMsg_SubscribeFromWorkerSuccess,
47 int32_t /* request_id */, 48 int32_t /* request_id */,
48 GURL /* push_endpoint */, 49 GURL /* push_endpoint */,
50 content::PushSubscriptionOptions /* options */,
49 std::vector<uint8_t> /* p256dh */, 51 std::vector<uint8_t> /* p256dh */,
50 std::vector<uint8_t> /* auth */) 52 std::vector<uint8_t> /* auth */)
51 53
52 IPC_MESSAGE_ROUTED2(PushMessagingMsg_SubscribeFromDocumentError, 54 IPC_MESSAGE_ROUTED2(PushMessagingMsg_SubscribeFromDocumentError,
53 int32_t /* request_id */, 55 int32_t /* request_id */,
54 content::PushRegistrationStatus /* status */) 56 content::PushRegistrationStatus /* status */)
55 57
56 IPC_MESSAGE_CONTROL2(PushMessagingMsg_SubscribeFromWorkerError, 58 IPC_MESSAGE_CONTROL2(PushMessagingMsg_SubscribeFromWorkerError,
57 int32_t /* request_id */, 59 int32_t /* request_id */,
58 content::PushRegistrationStatus /* status */) 60 content::PushRegistrationStatus /* status */)
59 61
60 IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnsubscribeSuccess, 62 IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnsubscribeSuccess,
61 int32_t /* request_id */, 63 int32_t /* request_id */,
62 bool /* did_unsubscribe */) 64 bool /* did_unsubscribe */)
63 65
64 IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnsubscribeError, 66 IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnsubscribeError,
65 int32_t /* request_id */, 67 int32_t /* request_id */,
66 blink::WebPushError::ErrorType /* error_type */, 68 blink::WebPushError::ErrorType /* error_type */,
67 std::string /* error_message */) 69 std::string /* error_message */)
68 70
69 IPC_MESSAGE_CONTROL4(PushMessagingMsg_GetSubscriptionSuccess, 71 IPC_MESSAGE_CONTROL5(PushMessagingMsg_GetSubscriptionSuccess,
70 int32_t /* request_id */, 72 int32_t /* request_id */,
71 GURL /* push_endpoint */, 73 GURL /* push_endpoint */,
74 content::PushSubscriptionOptions /* options */,
72 std::vector<uint8_t> /* p256dh */, 75 std::vector<uint8_t> /* p256dh */,
73 std::vector<uint8_t> /* auth */) 76 std::vector<uint8_t> /* auth */)
74 77
75 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetSubscriptionError, 78 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetSubscriptionError,
76 int32_t /* request_id */, 79 int32_t /* request_id */,
77 content::PushGetRegistrationStatus /* status */) 80 content::PushGetRegistrationStatus /* status */)
78 81
79 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess, 82 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess,
80 int32_t /* request_id */, 83 int32_t /* request_id */,
81 blink::WebPushPermissionStatus /* status */) 84 blink::WebPushPermissionStatus /* status */)
(...skipping 17 matching lines...) Expand all
99 int64_t /* service_worker_registration_id */) 102 int64_t /* service_worker_registration_id */)
100 103
101 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetSubscription, 104 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetSubscription,
102 int32_t /* request_id */, 105 int32_t /* request_id */,
103 int64_t /* service_worker_registration_id */) 106 int64_t /* service_worker_registration_id */)
104 107
105 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus, 108 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus,
106 int32_t /* request_id */, 109 int32_t /* request_id */,
107 int64_t /* service_worker_registration_id */, 110 int64_t /* service_worker_registration_id */,
108 bool /* user_visible */) 111 bool /* user_visible */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698