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

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

Issue 1133083002: Reject the permissionState promise with NotSupported Exception (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix failing test 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 std::string /* push_registration_id */) 64 std::string /* push_registration_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_CONTROL1(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 77
77 // Messages sent from the child process to the browser. 78 // Messages sent from the child process to the browser.
78 79
79 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_RegisterFromDocument, 80 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_RegisterFromDocument,
80 int32_t /* render_frame_id */, 81 int32_t /* render_frame_id */,
81 int32_t /* request_id */, 82 int32_t /* request_id */,
82 std::string /* sender_id */, 83 std::string /* sender_id */,
83 bool /* user_visible */, 84 bool /* user_visible */,
84 int64_t /* service_worker_registration_id */) 85 int64_t /* service_worker_registration_id */)
85 86
86 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_RegisterFromWorker, 87 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_RegisterFromWorker,
87 int32_t /* request_id */, 88 int32_t /* request_id */,
88 int64_t /* service_worker_registration_id */, 89 int64_t /* service_worker_registration_id */,
89 bool /* user_visible */) 90 bool /* user_visible */)
90 91
91 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unregister, 92 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unregister,
92 int32_t /* request_id */, 93 int32_t /* request_id */,
93 int64_t /* service_worker_registration_id */) 94 int64_t /* service_worker_registration_id */)
94 95
95 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetRegistration, 96 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetRegistration,
96 int32_t /* request_id */, 97 int32_t /* request_id */,
97 int64_t /* service_worker_registration_id */) 98 int64_t /* service_worker_registration_id */)
98 99
99 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus, 100 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_GetPermissionStatus,
100 int32_t /* request_id */, 101 int32_t /* request_id */,
101 int64_t /* service_worker_registration_id */, 102 int64_t /* service_worker_registration_id */,
102 bool /* user_visible */) 103 bool /* user_visible */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698