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

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

Issue 1210283005: Introduce the PushSubscription.curve25519dh attribute (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android fix 2 Created 5 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 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_ROUTED2(PushMessagingMsg_SubscribeFromDocumentSuccess, 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::vector<uint8_t> /* curve25519dh */)
37 38
38 IPC_MESSAGE_CONTROL2(PushMessagingMsg_SubscribeFromWorkerSuccess, 39 IPC_MESSAGE_CONTROL3(PushMessagingMsg_SubscribeFromWorkerSuccess,
39 int32_t /* request_id */, 40 int32_t /* request_id */,
40 GURL /* push_endpoint */) 41 GURL /* push_endpoint */,
42 std::vector<uint8_t> /* curve25519dh */)
41 43
42 IPC_MESSAGE_ROUTED2(PushMessagingMsg_SubscribeFromDocumentError, 44 IPC_MESSAGE_ROUTED2(PushMessagingMsg_SubscribeFromDocumentError,
43 int32_t /* request_id */, 45 int32_t /* request_id */,
44 content::PushRegistrationStatus /* status */) 46 content::PushRegistrationStatus /* status */)
45 47
46 IPC_MESSAGE_CONTROL2(PushMessagingMsg_SubscribeFromWorkerError, 48 IPC_MESSAGE_CONTROL2(PushMessagingMsg_SubscribeFromWorkerError,
47 int32_t /* request_id */, 49 int32_t /* request_id */,
48 content::PushRegistrationStatus /* status */) 50 content::PushRegistrationStatus /* status */)
49 51
50 IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnsubscribeSuccess, 52 IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnsubscribeSuccess,
51 int32_t /* request_id */, 53 int32_t /* request_id */,
52 bool /* did_unsubscribe */) 54 bool /* did_unsubscribe */)
53 55
54 IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnsubscribeError, 56 IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnsubscribeError,
55 int32_t /* request_id */, 57 int32_t /* request_id */,
56 blink::WebPushError::ErrorType /* error_type */, 58 blink::WebPushError::ErrorType /* error_type */,
57 std::string /* error_message */) 59 std::string /* error_message */)
58 60
59 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetRegistrationSuccess, 61 IPC_MESSAGE_CONTROL3(PushMessagingMsg_GetRegistrationSuccess,
60 int32_t /* request_id */, 62 int32_t /* request_id */,
61 GURL /* push_endpoint */) 63 GURL /* push_endpoint */,
64 std::vector<uint8_t> /* curve25519dh */)
62 65
63 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetRegistrationError, 66 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetRegistrationError,
64 int32_t /* request_id */, 67 int32_t /* request_id */,
65 content::PushGetRegistrationStatus /* status */) 68 content::PushGetRegistrationStatus /* status */)
66 69
67 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess, 70 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess,
68 int32_t /* request_id */, 71 int32_t /* request_id */,
69 blink::WebPushPermissionStatus /* status */) 72 blink::WebPushPermissionStatus /* status */)
70 73
71 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusError, 74 IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusError,
(...skipping 19 matching lines...) Expand all
91 int64_t /* service_worker_registration_id */) 94 int64_t /* service_worker_registration_id */)
92 95
93 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetRegistration, 96 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetRegistration,
94 int32_t /* request_id */, 97 int32_t /* request_id */,
95 int64_t /* service_worker_registration_id */) 98 int64_t /* service_worker_registration_id */)
96 99
97 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus, 100 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus,
98 int32_t /* request_id */, 101 int32_t /* request_id */,
99 int64_t /* service_worker_registration_id */, 102 int64_t /* service_worker_registration_id */,
100 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