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

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

Issue 2151993002: [WebAPKs] Plumb service worker scope to notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into notification_scope Created 4 years, 5 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_notification_manager.h
diff --git a/chrome/browser/push_messaging/push_messaging_notification_manager.h b/chrome/browser/push_messaging/push_messaging_notification_manager.h
index 6a5256b0c3a9e45dfbbae1abdc8428dc5a2cd9df..910c4b437f1cfbada17547ae472b6ab362dc6ce3 100644
--- a/chrome/browser/push_messaging/push_messaging_notification_manager.h
+++ b/chrome/browser/push_messaging/push_messaging_notification_manager.h
@@ -12,6 +12,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "content/common/service_worker/service_worker_status_code.h"
class GURL;
class Profile;
@@ -19,6 +20,7 @@ class Profile;
namespace content {
struct NotificationDatabaseData;
struct PlatformNotificationData;
+class ServiceWorkerRegistration;
class WebContents;
}
@@ -81,6 +83,7 @@ class PushMessagingNotificationManager {
static void DidWriteNotificationDataIOProxy(
const base::WeakPtr<PushMessagingNotificationManager>& ui_weak_ptr,
const GURL& origin,
+ int service_worker_id,
const content::PlatformNotificationData& notification_data,
const base::Closure& message_handled_closure,
bool success,
@@ -88,11 +91,29 @@ class PushMessagingNotificationManager {
void DidWriteNotificationData(
const GURL& origin,
+ int service_worker_registration_id,
const content::PlatformNotificationData& notification_data,
const base::Closure& message_handled_closure,
bool success,
int64_t persistent_notification_id);
+ static void FindServiceWorkerRegistrationCallbackIOProxy(
+ const base::WeakPtr<PushMessagingNotificationManager>& ui_weak_ptr,
+ const GURL& origin,
+ const content::PlatformNotificationData& notification_data,
+ const base::Closure& message_handled_closure,
+ int64_t persistent_notification_id,
+ content::ServiceWorkerStatusCode service_worker_status,
+ const scoped_refptr<content::ServiceWorkerRegistration>& registration);
+
+ void FindServiceWorkerRegistrationCallback(
+ const GURL& origin,
+ const content::PlatformNotificationData& notification_data,
+ const base::Closure& message_handled_closure,
+ int64_t persistent_notification_id,
+ content::ServiceWorkerStatusCode service_worker_status,
+ const scoped_refptr<content::ServiceWorkerRegistration>& registration);
+
void DidGetBudget(const GURL& origin,
int64_t service_worker_registration_id,
const base::Closure& message_handled_closure,

Powered by Google App Engine
This is Rietveld 408576698