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

Unified Diff: chrome/browser/push_messaging/push_messaging_service_impl.h

Issue 1099093003: Push API: Forced notifications should use Notifications database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: chrome/browser/push_messaging/push_messaging_service_impl.h
diff --git a/chrome/browser/push_messaging/push_messaging_service_impl.h b/chrome/browser/push_messaging/push_messaging_service_impl.h
index 01de3982db2d46452e2fd023b321e285aa911c5a..72c64303017217850f0d12b8a5440e2224ffd7fb 100644
--- a/chrome/browser/push_messaging/push_messaging_service_impl.h
+++ b/chrome/browser/push_messaging/push_messaging_service_impl.h
@@ -20,8 +20,8 @@
class Profile;
class PushMessagingApplicationId;
-namespace user_prefs {
-class PrefRegistrySyncable;
+namespace content {
+struct NotificationDatabaseData;
}
namespace gcm {
@@ -29,6 +29,10 @@ class GCMDriver;
class GCMProfileService;
}
+namespace user_prefs {
+class PrefRegistrySyncable;
+}
+
class PushMessagingServiceImpl : public content::PushMessagingService,
public gcm::GCMAppHandler,
public content_settings::Observer,
@@ -112,6 +116,13 @@ class PushMessagingServiceImpl : public content::PushMessagingService,
// notification on their behalf.
void RequireUserVisibleUX(const GURL& requesting_origin,
int64 service_worker_registration_id);
+
+ void DidGetNotificationsShowing(
+ const GURL& requesting_origin,
+ int64 service_worker_registration_id,
+ bool success,
+ const std::vector<content::NotificationDatabaseData>& data);
+
void DidGetNotificationsShown(
const GURL& requesting_origin,
int64 service_worker_registration_id,

Powered by Google App Engine
This is Rietveld 408576698