Chromium Code Reviews| Index: chrome/browser/notifications/notification.h |
| diff --git a/chrome/browser/notifications/notification.h b/chrome/browser/notifications/notification.h |
| index 6c7b9f205e8b09ecbeb0df1e53fd5e96d71bb63e..542b49ea747237c4e0e9439b316fbe6b94be78d0 100644 |
| --- a/chrome/browser/notifications/notification.h |
| +++ b/chrome/browser/notifications/notification.h |
| @@ -43,6 +43,11 @@ class Notification : public message_center::Notification { |
| // A unique identifier used to update (replace) or remove a notification. |
| const std::string& tag() const { return tag_; } |
| + const GURL& service_worker_scope() const { return service_worker_scope_; } |
| + void set_service_worker_scope(const GURL& service_worker_scope) { |
| + service_worker_scope_ = service_worker_scope; |
| + } |
| + |
| // Id of the delegate embedded inside this instance. |
| std::string delegate_id() const { return delegate()->id(); } |
| @@ -52,6 +57,10 @@ class Notification : public message_center::Notification { |
| // The user-supplied tag for the notification. |
| std::string tag_; |
| + // The service worker scope if the notification was displayed by a service |
| + // worker. |
|
Peter Beverloo
2016/07/19 14:17:17
nit: maybe specify that it's used for WebAPKs?
|
| + GURL service_worker_scope_; |
| + |
| // A proxy object that allows access back to the JavaScript object that |
| // represents the notification, for firing events. |
| scoped_refptr<NotificationDelegate> delegate_; |