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

Unified Diff: content/common/push_messaging_messages.h

Issue 793403002: Implement WebPushProvider.unregister() in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mvan_2
Patch Set: jochen review comments Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/DEPS ('k') | content/public/browser/push_messaging_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */)
« no previous file with comments | « content/common/DEPS ('k') | content/public/browser/push_messaging_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698