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

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: 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 c1a6f1cb6a03247deb1bf5a6d9e4ddf34771ddac..0010bb97d13be91033161827109c669dc1e0560b 100644
--- a/content/public/browser/push_messaging_service.h
+++ b/content/public/browser/push_messaging_service.h
@@ -77,6 +77,9 @@ class CONTENT_EXPORT PushMessagingService {
const GURL& embedding_origin,
bool user_visible) = 0;
+ // Returns true if silent push messages are accepted
Peter Beverloo 2015/05/11 12:56:07 Punctuation - it's a sentence. Also, "true" is imp
Miguel Garcia 2015/05/11 13:50:38 Done.
+ virtual bool SupportNonVisibleMessages();
Peter Beverloo 2015/05/11 12:56:07 nit: This should be pure virtual, like the rest of
Miguel Garcia 2015/05/11 13:50:38 Done.
+
protected:
// Provide a storage mechanism to read/write an opaque
// "notifications_shown_by_last_few_pushes" string associated with a Service

Powered by Google App Engine
This is Rietveld 408576698