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

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

Issue 793403002: Implement WebPushProvider.unregister() in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mvan_2
Patch Set: jochen review comments Created 6 years 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
« no previous file with comments | « content/common/DEPS ('k') | content/public/browser/push_messaging_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "content/public/common/push_messaging_status.h" 8 #include "content/public/common/push_messaging_status.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 #include "third_party/WebKit/public/platform/WebPushError.h"
10 #include "third_party/WebKit/public/platform/WebPushPermissionStatus.h" 11 #include "third_party/WebKit/public/platform/WebPushPermissionStatus.h"
11 #include "url/gurl.h" 12 #include "url/gurl.h"
12 13
13 #define IPC_MESSAGE_START PushMessagingMsgStart 14 #define IPC_MESSAGE_START PushMessagingMsgStart
14 15
15 IPC_ENUM_TRAITS_MAX_VALUE(content::PushRegistrationStatus, 16 IPC_ENUM_TRAITS_MAX_VALUE(content::PushRegistrationStatus,
16 content::PUSH_REGISTRATION_STATUS_LAST) 17 content::PUSH_REGISTRATION_STATUS_LAST)
17 18
18 IPC_ENUM_TRAITS_MAX_VALUE(content::PushGetRegistrationStatus, 19 IPC_ENUM_TRAITS_MAX_VALUE(content::PushGetRegistrationStatus,
19 content::PUSH_GETREGISTRATION_STATUS_LAST) 20 content::PUSH_GETREGISTRATION_STATUS_LAST)
20 21
21 IPC_ENUM_TRAITS_MAX_VALUE( 22 IPC_ENUM_TRAITS_MAX_VALUE(
22 blink::WebPushPermissionStatus, 23 blink::WebPushPermissionStatus,
23 blink::WebPushPermissionStatus::WebPushPermissionStatusLast) 24 blink::WebPushPermissionStatus::WebPushPermissionStatusLast)
24 25
26 IPC_ENUM_TRAITS_MAX_VALUE(
27 blink::WebPushError::ErrorType,
28 blink::WebPushError::ErrorType::ErrorTypeLast)
29
25 // Messages sent from the browser to the child process. 30 // Messages sent from the browser to the child process.
26 31
27 IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterFromDocumentSuccess, 32 IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterFromDocumentSuccess,
28 int32 /* request_id */, 33 int32 /* request_id */,
29 GURL /* push_endpoint */, 34 GURL /* push_endpoint */,
30 std::string /* push_registration_id */) 35 std::string /* push_registration_id */)
31 36
32 IPC_MESSAGE_CONTROL3(PushMessagingMsg_RegisterFromWorkerSuccess, 37 IPC_MESSAGE_CONTROL3(PushMessagingMsg_RegisterFromWorkerSuccess,
33 int32 /* request_id */, 38 int32 /* request_id */,
34 GURL /* push_endpoint */, 39 GURL /* push_endpoint */,
(...skipping 16 matching lines...) Expand all
51 int32 /* request_id */, 56 int32 /* request_id */,
52 content::PushGetRegistrationStatus /* status */) 57 content::PushGetRegistrationStatus /* status */)
53 58
54 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess, 59 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess,
55 int32 /* request_id */, 60 int32 /* request_id */,
56 blink::WebPushPermissionStatus /* status */) 61 blink::WebPushPermissionStatus /* status */)
57 62
58 IPC_MESSAGE_CONTROL1(PushMessagingMsg_GetPermissionStatusError, 63 IPC_MESSAGE_CONTROL1(PushMessagingMsg_GetPermissionStatusError,
59 int32 /* request_id */) 64 int32 /* request_id */)
60 65
66 IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnregisterSuccess,
67 int32 /* request_id */,
68 bool /* did_unregister */)
69
70 IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnregisterError,
71 int32 /* request_id */,
72 blink::WebPushError::ErrorType /* error_type */,
73 std::string /* error_message */)
74
61 // Messages sent from the child process to the browser. 75 // Messages sent from the child process to the browser.
62 76
63 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_RegisterFromDocument, 77 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_RegisterFromDocument,
64 int32 /* render_frame_id */, 78 int32 /* render_frame_id */,
65 int32 /* request_id */, 79 int32 /* request_id */,
66 std::string /* sender_id */, 80 std::string /* sender_id */,
67 bool /* user_visible_only */, 81 bool /* user_visible_only */,
68 int64 /* service_worker_registration_id */) 82 int64 /* service_worker_registration_id */)
69 83
70 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_RegisterFromWorker, 84 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_RegisterFromWorker,
71 int32 /* request_id */, 85 int32 /* request_id */,
72 int64 /* service_worker_registration_id */) 86 int64 /* service_worker_registration_id */)
73 87
74 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetPermissionStatus, 88 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetPermissionStatus,
75 int32 /* request_id */, 89 int32 /* request_id */,
76 int64 /* service_worker_registration_id */) 90 int64 /* service_worker_registration_id */)
91
92 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unregister,
93 int32 /* request_id */,
94 int64 /* service_worker_registration_id */)
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | content/public/browser/push_messaging_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698