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

Unified Diff: content/browser/push_messaging/push_messaging_message_filter.h

Issue 793403002: Implement WebPushProvider.unregister() in Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mvan_2
Patch Set: review commetns 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
Index: content/browser/push_messaging/push_messaging_message_filter.h
diff --git a/content/browser/push_messaging/push_messaging_message_filter.h b/content/browser/push_messaging/push_messaging_message_filter.h
index 942473968af72e68c9c6b6d52aca4fbf76e1614a..6565f1b4b542138d8acc24f0c0cad0c6089bf6a1 100644
--- a/content/browser/push_messaging/push_messaging_message_filter.h
+++ b/content/browser/push_messaging/push_messaging_message_filter.h
@@ -114,6 +114,19 @@ class PushMessagingMessageFilter : public BrowserMessageFilter {
PushRegistrationStatus status,
const std::string& push_registration_id);
+
+ // Unregister methods --------------------------------------------------------
+
+ void OnUnregister(int request_id,
+ int64 service_worker_registration_id);
+
+ void UnregisterOnUI(int request_id,
+ int64 service_worker_registration_id,
+ const GURL& requesting_origin);
+
+ void DidUnregister(int request_id,
+ PushUnregistrationStatus unregistration_status);
+
// Returns a push messaging service. The embedder owns the service, and is
// responsible for ensuring that it outlives RenderProcessHost. It's valid to
// return NULL. Must be called on the UI thread.

Powered by Google App Engine
This is Rietveld 408576698