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

Unified Diff: chrome/browser/services/gcm/push_messaging_service_impl.h

Issue 842233003: Push API: Require user visible notification, else show auto notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@invalid
Patch Set: Fix includes and typo Created 5 years, 11 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/services/gcm/push_messaging_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/services/gcm/push_messaging_service_impl.h
diff --git a/chrome/browser/services/gcm/push_messaging_service_impl.h b/chrome/browser/services/gcm/push_messaging_service_impl.h
index 99de11693c656b28fd4f44661dc81b0877e7ac8c..f09674e9eec06c93ce31fcae5e2f4794723b24c2 100644
--- a/chrome/browser/services/gcm/push_messaging_service_impl.h
+++ b/chrome/browser/services/gcm/push_messaging_service_impl.h
@@ -82,6 +82,12 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
const GCMClient::IncomingMessage& message,
content::PushDeliveryStatus status);
+ // Developers are required to display a Web Notification in response to an
+ // incoming push message in order to clarify to the user that something has
+ // happened in the background. When they forget to do so, display a default
+ // notification on their behalf.
+ void RequireUserVisibleUX(const PushMessagingApplicationId& application_id);
+
void RegisterEnd(
const content::PushMessagingService::RegisterCallback& callback,
const std::string& registration_id,
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/services/gcm/push_messaging_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698