| Index: content/common/push_messaging_messages.h
|
| diff --git a/content/common/push_messaging_messages.h b/content/common/push_messaging_messages.h
|
| index 724d1a7e7258c34518c0553982ccf9e745bae598..f6dbdd1b64bafba032389bccc1d0a83ce9895135 100644
|
| --- a/content/common/push_messaging_messages.h
|
| +++ b/content/common/push_messaging_messages.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "content/public/common/push_messaging_status.h"
|
| #include "ipc/ipc_message_macros.h"
|
| +#include "third_party/WebKit/public/platform/WebPushPermissionStatus.h"
|
| #include "url/gurl.h"
|
|
|
| #define IPC_MESSAGE_START PushMessagingMsgStart
|
| @@ -14,6 +15,9 @@
|
| IPC_ENUM_TRAITS_MAX_VALUE(content::PushRegistrationStatus,
|
| content::PUSH_REGISTRATION_STATUS_LAST)
|
|
|
| +IPC_ENUM_TRAITS_MAX_VALUE(
|
| + blink::WebPushPermissionStatus,
|
| + blink::WebPushPermissionStatus::WebPushPermissionStatusLast)
|
| // Messages sent from the browser to the renderer.
|
|
|
| IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterSuccess,
|
| @@ -25,6 +29,13 @@ IPC_MESSAGE_ROUTED2(PushMessagingMsg_RegisterError,
|
| int32 /* callbacks_id */,
|
| content::PushRegistrationStatus /* status */)
|
|
|
| +IPC_MESSAGE_ROUTED2(PushMessagingMsg_PermissionStatusResult,
|
| + int32 /* callback_id */,
|
| + blink::WebPushPermissionStatus /* status */)
|
| +
|
| +IPC_MESSAGE_ROUTED1(PushMessagingMsg_PermissionStatusFailure,
|
| + int32 /* callback_id */)
|
| +
|
| // Messages sent from the renderer to the browser.
|
|
|
| IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_Register,
|
| @@ -33,3 +44,8 @@ IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_Register,
|
| std::string /* sender_id */,
|
| bool /* user_gesture */,
|
| int32 /* service_worker_provider_id */)
|
| +
|
| +IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_PermissionStatus,
|
| + int32 /* render_frame_id */,
|
| + int32 /* service_worker_provider_id */,
|
| + int32 /* permission_callback_id */)
|
|
|