Index: content/common/push_messaging_messages.h |
diff --git a/content/common/push_messaging_messages.h b/content/common/push_messaging_messages.h |
index cd5e93edb7b8531764e060fd7c70f7f187127089..f11ca97030291ee0dab7698a7cee037889471ff1 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/WebPushPermissionCallback.h" |
#include "url/gurl.h" |
#define IPC_MESSAGE_START PushMessagingMsgStart |
@@ -14,6 +15,10 @@ |
IPC_ENUM_TRAITS_MAX_VALUE(content::PushMessagingStatus, |
content::PUSH_MESSAGING_STATUS_LAST) |
+IPC_ENUM_TRAITS_MAX_VALUE( |
+ blink::WebPushPermissionCallback::PushPermissionStatus, |
+ blink::WebPushPermissionCallback::PushPermissionStatus:: |
+ PushPermissionTypeLast) |
// Messages sent from the browser to the renderer. |
IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterSuccess, |
@@ -25,6 +30,11 @@ IPC_MESSAGE_ROUTED2(PushMessagingMsg_RegisterError, |
int32 /* callbacks_id */, |
content::PushMessagingStatus /* status */) |
+IPC_MESSAGE_ROUTED2( |
+ PushMessagingMsg_PermissionStatusResult, |
+ int32 /* callback_id */, |
+ blink::WebPushPermissionCallback::PushPermissionStatus /* status */) |
+ |
// Messages sent from the renderer to the browser. |
IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_Register, |
@@ -33,3 +43,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 */) |