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

Unified Diff: content/browser/service_worker/embedded_worker_test_helper.h

Issue 2682353002: Mojoify the notificationclick and notificationclose events (Closed)
Patch Set: Mojoify the notificationclick and notificationclose events Created 3 years, 10 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: content/browser/service_worker/embedded_worker_test_helper.h
diff --git a/content/browser/service_worker/embedded_worker_test_helper.h b/content/browser/service_worker/embedded_worker_test_helper.h
index fe94ff1a2eea7240bde5b9d42c6df01cff386cd2..094032b43407845bae7fa818ea4ebb29e612ca3e 100644
--- a/content/browser/service_worker/embedded_worker_test_helper.h
+++ b/content/browser/service_worker/embedded_worker_test_helper.h
@@ -43,6 +43,7 @@ class ServiceWorkerContextCore;
class ServiceWorkerContextWrapper;
class TestBrowserContext;
struct EmbeddedWorkerStartParams;
+struct PlatformNotificationData;
struct PushEventPayload;
struct ServiceWorkerFetchRequest;
@@ -193,6 +194,18 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
const ServiceWorkerFetchRequest& request,
mojom::FetchEventPreloadHandlePtr preload_handle,
const FetchCallback& callback);
+ virtual void OnNotificationClickEvent(
+ const std::string& notification_id,
+ const PlatformNotificationData& notification_data,
+ int action_index,
+ const base::Optional<base::string16>& reply,
+ const mojom::ServiceWorkerEventDispatcher::
+ DispatchNotificationClickEventCallback& callback);
+ virtual void OnNotificationCloseEvent(
+ const std::string& notification_id,
+ const PlatformNotificationData& notification_data,
+ const mojom::ServiceWorkerEventDispatcher::
+ DispatchNotificationCloseEventCallback& callback);
virtual void OnPushEvent(
const PushEventPayload& payload,
const mojom::ServiceWorkerEventDispatcher::DispatchPushEventCallback&
@@ -237,6 +250,18 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
const ServiceWorkerFetchRequest& request,
mojom::FetchEventPreloadHandlePtr preload_handle,
const FetchCallback& callback);
+ void OnNotificationClickEventStub(
+ const std::string& notification_id,
+ const PlatformNotificationData& notification_data,
+ int action_index,
+ const base::Optional<base::string16>& reply,
+ const mojom::ServiceWorkerEventDispatcher::
+ DispatchNotificationClickEventCallback& callback);
+ void OnNotificationCloseEventStub(
+ const std::string& notification_id,
+ const PlatformNotificationData& notification_data,
+ const mojom::ServiceWorkerEventDispatcher::
+ DispatchNotificationCloseEventCallback& callback);
void OnPushEventStub(
const PushEventPayload& payload,
const mojom::ServiceWorkerEventDispatcher::DispatchPushEventCallback&

Powered by Google App Engine
This is Rietveld 408576698