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

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

Issue 1133083002: Reject the permissionState promise with NotSupported Exception (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix failing test Created 5 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/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 e8e02ef2052b9b5c9e5735f6acb0fb3a3c6da7c0..d772f45091ad970c03731ce870e15908003bac8e 100644
--- a/content/public/browser/push_messaging_service.h
+++ b/content/public/browser/push_messaging_service.h
@@ -77,6 +77,11 @@ class CONTENT_EXPORT PushMessagingService {
const GURL& embedding_origin,
bool user_visible) = 0;
+ // Returns whether subscriptions that do not mandate user visible UI upon
+ // receiving a push message are supported. Influences permission request and
+ // permission check behaviour.
+ virtual bool SupportNonVisibleMessages() = 0;
+
// Provide a storage mechanism to read/write an opaque
// "notifications_shown_by_last_few_pushes" string associated with a Service
// Worker registration. Stored data is deleted when the associated

Powered by Google App Engine
This is Rietveld 408576698