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

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

Issue 1701313002: Partial implementation of subscription restrictions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix module export build issue Created 4 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 3b95d2d56dc2fb8082e68cff2e20531eb08bb040..a0b145ab64d8186cdbc8b03bdc4af25061c5d54f 100644
--- a/chrome/browser/push_messaging/push_messaging_service_impl.h
+++ b/chrome/browser/push_messaging/push_messaging_service_impl.h
@@ -35,6 +35,7 @@
class Profile;
class PushMessagingAppIdentifier;
class PushMessagingServiceObserver;
+struct PushSubscriptionOptions;
namespace gcm {
class GCMDriver;
@@ -74,16 +75,14 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
void SubscribeFromDocument(
const GURL& requesting_origin,
int64_t service_worker_registration_id,
- const std::string& sender_id,
int renderer_id,
int render_frame_id,
- bool user_visible,
+ const content::PushSubscriptionOptions& options,
const content::PushMessagingService::RegisterCallback& callback) override;
void SubscribeFromWorker(
const GURL& requesting_origin,
int64_t service_worker_registration_id,
- const std::string& sender_id,
- bool user_visible,
+ const content::PushSubscriptionOptions& options,
const content::PushMessagingService::RegisterCallback& callback) override;
void GetEncryptionInfo(
const GURL& origin,
@@ -165,7 +164,7 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
void DidRequestPermission(
const PushMessagingAppIdentifier& app_identifier,
- const std::string& sender_id,
+ const content::PushSubscriptionOptions& options,
const content::PushMessagingService::RegisterCallback& callback,
content::PermissionStatus permission_status);

Powered by Google App Engine
This is Rietveld 408576698