Index: content/common/push_messaging_messages.h |
diff --git a/content/common/push_messaging_messages.h b/content/common/push_messaging_messages.h |
index 6dfacf9c90376b9f29daec29e9357bd9d6fbc7fe..bdab65828d59f849e6dad30be0bae5580816608a 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/WebPushError.h" |
#include "third_party/WebKit/public/platform/WebPushPermissionStatus.h" |
#include "url/gurl.h" |
@@ -19,6 +20,10 @@ IPC_ENUM_TRAITS_MAX_VALUE( |
blink::WebPushPermissionStatus, |
blink::WebPushPermissionStatus::WebPushPermissionStatusLast) |
+IPC_ENUM_TRAITS_MAX_VALUE( |
+ blink::WebPushError::ErrorType, |
+ blink::WebPushError::ErrorType::ErrorTypeLast) |
+ |
// Messages sent from the browser to the child process. |
IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterFromDocumentSuccess, |
@@ -55,6 +60,15 @@ IPC_MESSAGE_ROUTED1(PushMessagingMsg_PermissionStatusFailure, |
IPC_MESSAGE_CONTROL1(PushMessagingMsg_GetPermissionStatusError, |
int32 /* request_id */) |
+IPC_MESSAGE_CONTROL2(PushMessagingMsg_UnregisterSuccess, |
+ int32 /* request_id */, |
+ bool /* did_unregister */) |
+ |
+IPC_MESSAGE_CONTROL3(PushMessagingMsg_UnregisterError, |
+ int32 /* request_id */, |
+ blink::WebPushError::ErrorType /* error_type */, |
+ std::string /* error_message */) |
+ |
// Messages sent from the child process to the browser. |
// TODO(mvanouwerkerk): Delete this when it is no longer used. |
@@ -85,3 +99,7 @@ IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_PermissionStatus, |
IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetPermissionStatus, |
int32 /* request_id */, |
int64 /* service_worker_registration_id */) |
+ |
+IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_Unregister, |
+ int32 /* request_id */, |
+ int64 /* service_worker_registration_id */) |