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

Unified Diff: content/public/browser/push_messaging_service.h

Issue 1931843002: Ship Web Push subscription restrictions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/public/browser/push_messaging_service.h
diff --git a/content/public/browser/push_messaging_service.h b/content/public/browser/push_messaging_service.h
index 21b107c58f42940531728bc08ed415f99addc43d..d98c9a902bbc56647849d7617f0c3c1d0895ecb8 100644
--- a/content/public/browser/push_messaging_service.h
+++ b/content/public/browser/push_messaging_service.h
@@ -43,10 +43,10 @@ class CONTENT_EXPORT PushMessagingService {
virtual ~PushMessagingService() {}
- // Returns the absolute URL exposed by the push server where the webapp server
- // can send push messages. This is currently assumed to be the same for all
- // origins and push registrations.
- virtual GURL GetPushEndpoint() = 0;
+ // Returns the absolute URL to the endpoint of the push service where messages
+ // should be posted to. Should return an endpoint compatible with the Web Push
+ // Protocol when |standard_protocol| is true.
+ virtual GURL GetEndpoint(bool standard_protocol) const = 0;
// Subscribe the given |options.sender_info| with the push messaging service
// in a document context. The frame is known and a permission UI may be

Powered by Google App Engine
This is Rietveld 408576698