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

Unified Diff: chrome/browser/push_messaging/push_messaging_service_impl.h

Issue 2697793004: Push API: Validate storage before returning cached subscriptions (Closed)
Patch Set: Comment out PUSH_GETREGISTRATION_STATUS_PUBLIC_KEY_UNAVAILABLE Created 3 years, 10 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: chrome/browser/push_messaging/push_messaging_service_impl.h
diff --git a/chrome/browser/push_messaging/push_messaging_service_impl.h b/chrome/browser/push_messaging/push_messaging_service_impl.h
index 50416f94b85f6377fafd1630efddfde84a6d140f..ec3402683841b0906aaf4a9eae3c439968b61421 100644
--- a/chrome/browser/push_messaging/push_messaging_service_impl.h
+++ b/chrome/browser/push_messaging/push_messaging_service_impl.h
@@ -82,11 +82,13 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
int64_t service_worker_registration_id,
const content::PushSubscriptionOptions& options,
const RegisterCallback& callback) override;
- void GetEncryptionInfo(const GURL& origin,
- int64_t service_worker_registration_id,
- const std::string& sender_id,
- const EncryptionInfoCallback& callback) override;
- void Unsubscribe(const GURL& requesting_origin,
+ void GetSubscriptionInfo(const GURL& origin,
+ int64_t service_worker_registration_id,
+ const std::string& sender_id,
+ const std::string& subscription_id,
+ const SubscriptionInfoCallback& callback) override;
+ void Unsubscribe(content::PushUnregistrationReason reason,
+ const GURL& requesting_origin,
int64_t service_worker_registration_id,
const std::string& sender_id,
const UnregisterCallback&) override;
@@ -169,9 +171,15 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
const std::string& p256dh,
const std::string& auth_secret);
- // GetEncryptionInfo method --------------------------------------------------
+ // GetSubscriptionInfo method
+ // --------------------------------------------------
Peter Beverloo 2017/03/20 23:50:13 nit: did clang-format do this? It's now inconsiste
johnme 2017/03/30 18:36:38 Done.
+
+ void DidValidateSubscription(const std::string& app_id,
+ const std::string& sender_id,
+ const SubscriptionInfoCallback& callback,
+ bool is_valid);
- void DidGetEncryptionInfo(const EncryptionInfoCallback& callback,
+ void DidGetEncryptionInfo(const SubscriptionInfoCallback& callback,
const std::string& p256dh,
const std::string& auth_secret) const;

Powered by Google App Engine
This is Rietveld 408576698