Index: content/common/push_messaging_messages.h |
diff --git a/content/common/push_messaging_messages.h b/content/common/push_messaging_messages.h |
index 6f3b87b521f5d52f21f44ebe9f518ff42a6f0700..3b829cd09bf55b64fbb3d0000b40e6d7404a8ad1 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" |
@@ -22,6 +23,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, |
@@ -58,6 +63,15 @@ IPC_MESSAGE_CONTROL2(PushMessagingMsg_GetPermissionStatusSuccess, |
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. |
IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_RegisterFromDocument, |
@@ -74,3 +88,7 @@ IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_RegisterFromWorker, |
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 */) |