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

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

Issue 883743002: Push API: Grace - allow one in ten pushes to show no notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@userdata
Patch Set: Use static methods on PushMessagingService to save state Created 5 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/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 f09674e9eec06c93ce31fcae5e2f4794723b24c2..9cc53c08b73d2b11ba3168ee531d8b7b0c2f0397 100644
--- a/chrome/browser/services/gcm/push_messaging_service_impl.h
+++ b/chrome/browser/services/gcm/push_messaging_service_impl.h
@@ -87,6 +87,13 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
// happened in the background. When they forget to do so, display a default
// notification on their behalf.
void RequireUserVisibleUX(const PushMessagingApplicationId& application_id);
+ void DidGetNotificationsShown(
+ const PushMessagingApplicationId& application_id,
+ bool notification_shown,
+ bool notification_needed,
+ const std::string& data,
+ bool success,
+ bool not_found);
void RegisterEnd(
const content::PushMessagingService::RegisterCallback& callback,

Powered by Google App Engine
This is Rietveld 408576698