summaryrefslogtreecommitdiffstats
path: root/content/browser/service_worker
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/service_worker')
-rw-r--r--content/browser/service_worker/service_worker_version.cc9
-rw-r--r--content/browser/service_worker/service_worker_version.h3
2 files changed, 8 insertions, 4 deletions
diff --git a/content/browser/service_worker/service_worker_version.cc b/content/browser/service_worker/service_worker_version.cc
index 4ff04c8..03b15bb 100644
--- a/content/browser/service_worker/service_worker_version.cc
+++ b/content/browser/service_worker/service_worker_version.cc
@@ -826,7 +826,8 @@ void ServiceWorkerVersion::DispatchSyncEvent(SyncRegistrationPtr registration,
void ServiceWorkerVersion::DispatchNotificationClickEvent(
const StatusCallback& callback,
int64_t persistent_notification_id,
- const PlatformNotificationData& notification_data) {
+ const PlatformNotificationData& notification_data,
+ int action_index) {
DCHECK_EQ(ACTIVATED, status()) << status();
if (running_status() != RUNNING) {
// Schedule calling this method after starting the worker.
@@ -834,7 +835,8 @@ void ServiceWorkerVersion::DispatchNotificationClickEvent(
&RunTaskAfterStartWorker, weak_factory_.GetWeakPtr(), callback,
base::Bind(&self::DispatchNotificationClickEvent,
weak_factory_.GetWeakPtr(), callback,
- persistent_notification_id, notification_data)));
+ persistent_notification_id, notification_data,
+ action_index)));
return;
}
@@ -842,7 +844,8 @@ void ServiceWorkerVersion::DispatchNotificationClickEvent(
REQUEST_NOTIFICATION_CLICK);
ServiceWorkerStatusCode status =
embedded_worker_->SendMessage(ServiceWorkerMsg_NotificationClickEvent(
- request_id, persistent_notification_id, notification_data));
+ request_id, persistent_notification_id, notification_data,
+ action_index));
if (status != SERVICE_WORKER_OK) {
notification_click_requests_.Remove(request_id);
RunSoon(base::Bind(callback, status));
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index a1bb88e..36f7f61 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -220,7 +220,8 @@ class CONTENT_EXPORT ServiceWorkerVersion
void DispatchNotificationClickEvent(
const StatusCallback& callback,
int64_t persistent_notification_id,
- const PlatformNotificationData& notification_data);
+ const PlatformNotificationData& notification_data,
+ int action_index);
// Sends push event to the associated embedded worker and asynchronously calls
// |callback| when it errors out or it gets a response from the worker to