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

Unified Diff: content/renderer/service_worker/service_worker_script_context.h

Issue 728763003: Introduce a //content/ API for dispatching notificationclick events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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: content/renderer/service_worker/service_worker_script_context.h
diff --git a/content/renderer/service_worker/service_worker_script_context.h b/content/renderer/service_worker/service_worker_script_context.h
index 9bde541f0b8240d22c503d954ff2a8c369a3fd89..6400d8bf8d1b4b774fb91ebcf2c5ca3466a3fa4a 100644
--- a/content/renderer/service_worker/service_worker_script_context.h
+++ b/content/renderer/service_worker/service_worker_script_context.h
@@ -35,6 +35,7 @@ class Message;
namespace content {
class EmbeddedWorkerContextClient;
+struct ShowDesktopNotificationHostMsgParams;
// TODO(kinuko): This should implement WebServiceWorkerContextClient
// rather than having EmbeddedWorkerContextClient implement it.
@@ -92,8 +93,10 @@ class ServiceWorkerScriptContext {
void OnInstallEvent(int request_id, int active_version_id);
void OnFetchEvent(int request_id, const ServiceWorkerFetchRequest& request);
void OnSyncEvent(int request_id);
- void OnNotificationClickEvent(int request_id,
- const std::string& notification_id);
+ void OnNotificationClickEvent(
+ int request_id,
+ const std::string& notification_id,
+ const ShowDesktopNotificationHostMsgParams& notification_data);
void OnPushEvent(int request_id, const std::string& data);
void OnGeofencingEvent(int request_id,
blink::WebGeofencingEventType event_type,

Powered by Google App Engine
This is Rietveld 408576698