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

Unified Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: it works \o/ Created 4 years, 8 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
« no previous file with comments | « third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
diff --git a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
index fa46ac4f5657c2f79490c45288e3d064a835fb19..fd57a25e3f535686d1637e0a91ac925b480e97a9 100644
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
@@ -31,6 +31,7 @@
#ifndef WebServiceWorkerContextProxy_h
#define WebServiceWorkerContextProxy_h
+#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "public/platform/WebGeofencingEventType.h"
#include "public/platform/WebMessagePortChannel.h"
#include "public/platform/modules/serviceworker/WebServiceWorker.h"
@@ -40,6 +41,13 @@
namespace blink {
+namespace mojom {
+namespace blink {
+class Notification;
+using NotificationPtr = mojo::StructPtr<Notification>;
+}
+}
+
class WebServiceWorkerRequest;
class WebString;
struct WebCircularGeofencingRegion;
@@ -61,8 +69,8 @@ public:
virtual void dispatchFetchEvent(int eventID, const WebServiceWorkerRequest& webRequest) = 0;
virtual void dispatchForeignFetchEvent(int eventID, const WebServiceWorkerRequest& webRequest) = 0;
virtual void dispatchGeofencingEvent(int eventID, WebGeofencingEventType, const WebString& regionID, const WebCircularGeofencingRegion&) = 0;
- virtual void dispatchNotificationClickEvent(int eventID, int64_t notificationID, const WebNotificationData&, int actionIndex) = 0;
- virtual void dispatchNotificationCloseEvent(int eventID, int64_t notificationID, const WebNotificationData&) = 0;
+ virtual void dispatchNotificationClickEvent(int eventID, mojom::blink::NotificationPtr notification, int actionIndex) = 0;
+ virtual void dispatchNotificationCloseEvent(int eventID, mojom::blink::NotificationPtr notification) = 0;
virtual void dispatchPushEvent(int eventID, const WebString& data) = 0;
enum LastChanceOption {
« no previous file with comments | « third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698