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

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

Issue 1945753002: Make Service Worker DB UserData methods accept multiple keys at once (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid6encrypt
Patch Set: Rebase Created 4 years, 7 months 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 77548ea0cb7ac3f1adf2c7ac16edf946eec95683..7ff2fc2d1d70612bc66fd05363ae74180391daf9 100644
--- a/content/browser/push_messaging/push_messaging_message_filter.h
+++ b/content/browser/push_messaging/push_messaging_message_filter.h
@@ -71,7 +71,7 @@ class PushMessagingMessageFilter : public BrowserMessageFilter {
void DidCheckForExistingRegistration(
const RegisterData& data,
const PushSubscriptionOptions& options,
- const std::string& push_registration_id,
+ const std::vector<std::string>& push_registration_id,
ServiceWorkerStatusCode service_worker_status);
void DidGetEncryptionKeys(const RegisterData& data,
@@ -81,7 +81,7 @@ class PushMessagingMessageFilter : public BrowserMessageFilter {
const std::vector<uint8_t>& auth);
void DidGetSenderIdFromStorage(const RegisterData& data,
- const std::string& sender_id,
+ const std::vector<std::string>& sender_id,
ServiceWorkerStatusCode service_worker_status);
// Called via PostTask from UI thread.
@@ -111,18 +111,11 @@ class PushMessagingMessageFilter : public BrowserMessageFilter {
void OnUnsubscribe(int request_id, int64_t service_worker_registration_id);
- void UnsubscribeHavingGottenPushSubscriptionId(
- int request_id,
- int64_t service_worker_registration_id,
- const GURL& requesting_origin,
- const std::string& push_subscription_id,
- ServiceWorkerStatusCode service_worker_status);
-
- void UnsubscribeHavingGottenSenderId(
+ void UnsubscribeHavingGottenIds(
int request_id,
int64_t service_worker_registration_id,
const GURL& requesting_origin,
- const std::string& sender_id,
+ const std::vector<std::string>& push_subscription_and_sender_ids,
ServiceWorkerStatusCode service_worker_status);
// Called via PostTask from UI thread.
@@ -145,7 +138,7 @@ class PushMessagingMessageFilter : public BrowserMessageFilter {
void DidGetSubscription(int request_id,
int64_t service_worker_registration_id,
- const std::string& push_subscription_id,
+ const std::vector<std::string>& push_subscription_id,
ServiceWorkerStatusCode status);
void DidGetSubscriptionKeys(int request_id,

Powered by Google App Engine
This is Rietveld 408576698