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

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

Issue 1770763003: Revert of Partial implementation of subscription restrictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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"
11 #include "content/public/common/push_subscription_options.h"
12 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
13 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushError .h" 12 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushError .h"
14 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushPermi ssionStatus.h" 13 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushPermi ssionStatus.h"
15 #include "url/gurl.h" 14 #include "url/gurl.h"
16 15
17 #define IPC_MESSAGE_START PushMessagingMsgStart 16 #define IPC_MESSAGE_START PushMessagingMsgStart
18 17
19 IPC_ENUM_TRAITS_MAX_VALUE(content::PushRegistrationStatus, 18 IPC_ENUM_TRAITS_MAX_VALUE(content::PushRegistrationStatus,
20 content::PUSH_REGISTRATION_STATUS_LAST) 19 content::PUSH_REGISTRATION_STATUS_LAST)
21 20
22 IPC_ENUM_TRAITS_MAX_VALUE(content::PushGetRegistrationStatus, 21 IPC_ENUM_TRAITS_MAX_VALUE(content::PushGetRegistrationStatus,
23 content::PUSH_GETREGISTRATION_STATUS_LAST) 22 content::PUSH_GETREGISTRATION_STATUS_LAST)
24 23
25 IPC_ENUM_TRAITS_MAX_VALUE( 24 IPC_ENUM_TRAITS_MAX_VALUE(
26 blink::WebPushPermissionStatus, 25 blink::WebPushPermissionStatus,
27 blink::WebPushPermissionStatus::WebPushPermissionStatusLast) 26 blink::WebPushPermissionStatus::WebPushPermissionStatusLast)
28 27
29 IPC_ENUM_TRAITS_MAX_VALUE( 28 IPC_ENUM_TRAITS_MAX_VALUE(
30 blink::WebPushError::ErrorType, 29 blink::WebPushError::ErrorType,
31 blink::WebPushError::ErrorType::ErrorTypeLast) 30 blink::WebPushError::ErrorType::ErrorTypeLast)
32 31
33 IPC_STRUCT_TRAITS_BEGIN(content::PushSubscriptionOptions)
34 IPC_STRUCT_TRAITS_MEMBER(user_visible_only)
35 IPC_STRUCT_TRAITS_MEMBER(sender_info)
36 IPC_STRUCT_TRAITS_END()
37
38 // Messages sent from the browser to the child process. 32 // Messages sent from the browser to the child process.
39 33
40 IPC_MESSAGE_ROUTED4(PushMessagingMsg_SubscribeFromDocumentSuccess, 34 IPC_MESSAGE_ROUTED4(PushMessagingMsg_SubscribeFromDocumentSuccess,
41 int32_t /* request_id */, 35 int32_t /* request_id */,
42 GURL /* push_endpoint */, 36 GURL /* push_endpoint */,
43 std::vector<uint8_t> /* p256dh */, 37 std::vector<uint8_t> /* p256dh */,
44 std::vector<uint8_t> /* auth */) 38 std::vector<uint8_t> /* auth */)
45 39
46 IPC_MESSAGE_CONTROL4(PushMessagingMsg_SubscribeFromWorkerSuccess, 40 IPC_MESSAGE_CONTROL4(PushMessagingMsg_SubscribeFromWorkerSuccess,
47 int32_t /* request_id */, 41 int32_t /* request_id */,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess, 73 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess,
80 int32_t /* request_id */, 74 int32_t /* request_id */,
81 blink::WebPushPermissionStatus /* status */) 75 blink::WebPushPermissionStatus /* status */)
82 76
83 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusError, 77 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusError,
84 int32_t /* request_id */, 78 int32_t /* request_id */,
85 blink::WebPushError::ErrorType /* error_type */) 79 blink::WebPushError::ErrorType /* error_type */)
86 80
87 // Messages sent from the child process to the browser. 81 // Messages sent from the child process to the browser.
88 82
89 IPC_MESSAGE_CONTROL4(PushMessagingHostMsg_SubscribeFromDocument, 83 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_SubscribeFromDocument,
90 int32_t /* render_frame_id */, 84 int32_t /* render_frame_id */,
91 int32_t /* request_id */, 85 int32_t /* request_id */,
92 content::PushSubscriptionOptions /* options */, 86 std::string /* sender_id */,
87 bool /* user_visible */,
93 int64_t /* service_worker_registration_id */) 88 int64_t /* service_worker_registration_id */)
94 89
95 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_SubscribeFromWorker, 90 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_SubscribeFromWorker,
96 int32_t /* request_id */, 91 int32_t /* request_id */,
97 int64_t /* service_worker_registration_id */, 92 int64_t /* service_worker_registration_id */,
98 content::PushSubscriptionOptions /* options */) 93 bool /* user_visible */)
99 94
100 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unsubscribe, 95 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unsubscribe,
101 int32_t /* request_id */, 96 int32_t /* request_id */,
102 int64_t /* service_worker_registration_id */) 97 int64_t /* service_worker_registration_id */)
103 98
104 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetSubscription, 99 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetSubscription,
105 int32_t /* request_id */, 100 int32_t /* request_id */,
106 int64_t /* service_worker_registration_id */) 101 int64_t /* service_worker_registration_id */)
107 102
108 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus, 103 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus,
109 int32_t /* request_id */, 104 int32_t /* request_id */,
110 int64_t /* service_worker_registration_id */, 105 int64_t /* service_worker_registration_id */,
111 bool /* user_visible */) 106 bool /* user_visible */)
OLDNEW
« no previous file with comments | « content/child/push_messaging/push_provider.cc ('k') | content/public/browser/push_messaging_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698