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

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

Issue 1134733006: Push API: use (un)subscription instead of (un)registration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed pre-submit warning Created 5 years, 7 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 13 matching lines...) Expand all
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_RegisterFromDocumentSuccess, 34 IPC_MESSAGE_ROUTED3(PushMessagingMsg_SubscribeFromDocumentSuccess,
35 int32_t /* request_id */, 35 int32_t /* request_id */,
36 GURL /* push_endpoint */, 36 GURL /* push_endpoint */,
37 std::string /* push_registration_id */) 37 std::string /* push_subscription_id */)
38 38
39 IPC_MESSAGE_CONTROL3(PushMessagingMsg_RegisterFromWorkerSuccess, 39 IPC_MESSAGE_CONTROL3(PushMessagingMsg_SubscribeFromWorkerSuccess,
40 int32_t /* request_id */, 40 int32_t /* request_id */,
41 GURL /* push_endpoint */, 41 GURL /* push_endpoint */,
42 std::string /* push_registration_id */) 42 std::string /* push_subscription_id */)
43 43
44 IPC_MESSAGE_ROUTED2(PushMessagingMsg_RegisterFromDocumentError, 44 IPC_MESSAGE_ROUTED2(PushMessagingMsg_SubscribeFromDocumentError,
45 int32_t /* request_id */, 45 int32_t /* request_id */,
46 content::PushRegistrationStatus /* status */) 46 content::PushRegistrationStatus /* status */)
47 47
48 IPC_MESSAGE_CONTROL2(PushMessagingMsg_RegisterFromWorkerError, 48 IPC_MESSAGE_CONTROL2(PushMessagingMsg_SubscribeFromWorkerError,
49 int32_t /* request_id */, 49 int32_t /* request_id */,
50 content::PushRegistrationStatus /* status */) 50 content::PushRegistrationStatus /* status */)
51 51
52 IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnregisterSuccess, 52 IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnsubscribeSuccess,
53 int32_t /* request_id */, 53 int32_t /* request_id */,
54 bool /* did_unregister */) 54 bool /* did_unsubscribe */)
55 55
56 IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnregisterError, 56 IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnsubscribeError,
57 int32_t /* request_id */, 57 int32_t /* request_id */,
58 blink::WebPushError::ErrorType /* error_type */, 58 blink::WebPushError::ErrorType /* error_type */,
59 std::string /* error_message */) 59 std::string /* error_message */)
60 60
61 IPC_MESSAGE_CONTROL3(PushMessagingMsg_GetRegistrationSuccess, 61 IPC_MESSAGE_CONTROL3(PushMessagingMsg_GetRegistrationSuccess,
62 int32_t /* request_id */, 62 int32_t /* request_id */,
63 GURL /* push_endpoint */, 63 GURL /* push_endpoint */,
64 std::string /* push_registration_id */) 64 std::string /* push_subscription_id */)
65 65
66 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetRegistrationError, 66 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetRegistrationError,
67 int32_t /* request_id */, 67 int32_t /* request_id */,
68 content::PushGetRegistrationStatus /* status */) 68 content::PushGetRegistrationStatus /* status */)
69 69
70 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess, 70 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess,
71 int32_t /* request_id */, 71 int32_t /* request_id */,
72 blink::WebPushPermissionStatus /* status */) 72 blink::WebPushPermissionStatus /* status */)
73 73
74 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusError, 74 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusError,
75 int32_t /* request_id */, 75 int32_t /* request_id */,
76 blink::WebPushError::ErrorType /* error_type */) 76 blink::WebPushError::ErrorType /* error_type */)
77 77
78 // Messages sent from the child process to the browser. 78 // Messages sent from the child process to the browser.
79 79
80 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_RegisterFromDocument, 80 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_SubscribeFromDocument,
81 int32_t /* render_frame_id */, 81 int32_t /* render_frame_id */,
82 int32_t /* request_id */, 82 int32_t /* request_id */,
83 std::string /* sender_id */, 83 std::string /* sender_id */,
84 bool /* user_visible */, 84 bool /* user_visible */,
85 int64_t /* service_worker_registration_id */) 85 int64_t /* service_worker_registration_id */)
86 86
87 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_RegisterFromWorker, 87 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_SubscribeFromWorker,
88 int32_t /* request_id */, 88 int32_t /* request_id */,
89 int64_t /* service_worker_registration_id */, 89 int64_t /* service_worker_registration_id */,
90 bool /* user_visible */) 90 bool /* user_visible */)
91 91
92 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unregister, 92 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unsubscribe,
93 int32_t /* request_id */, 93 int32_t /* request_id */,
94 int64_t /* service_worker_registration_id */) 94 int64_t /* service_worker_registration_id */)
95 95
96 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetRegistration, 96 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetRegistration,
97 int32_t /* request_id */, 97 int32_t /* request_id */,
98 int64_t /* service_worker_registration_id */) 98 int64_t /* service_worker_registration_id */)
99 99
100 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus, 100 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus,
101 int32_t /* request_id */, 101 int32_t /* request_id */,
102 int64_t /* service_worker_registration_id */, 102 int64_t /* service_worker_registration_id */,
103 bool /* user_visible */) 103 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