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

Unified Diff: third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h

Issue 1847863002: Move notification resource loading from content/child to blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address peter's comments. 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
Index: third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h
diff --git a/third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h b/third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h
index dd5387f8e2fab708add1e6fbce947bf06e3ac533..e83bf7ec9c432b9554ab78b038f76e22271c8a5c 100644
--- a/third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h
+++ b/third_party/WebKit/public/platform/modules/notifications/WebNotificationManager.h
@@ -10,6 +10,8 @@
#include "public/platform/WebVector.h"
#include "public/platform/modules/notifications/WebNotificationData.h"
#include "public/platform/modules/notifications/WebNotificationPermission.h"
+#include "public/platform/modules/notifications/WebNotificationResources.h"
+#include <memory>
#include <stdint.h>
namespace blink {
@@ -34,12 +36,12 @@ public:
// Shows a page notification on the user's system. These notifications will have their
// events delivered to the delegate specified in this call.
- virtual void show(const WebSecurityOrigin&, const WebNotificationData&, WebNotificationDelegate*) = 0;
+ virtual void show(const WebSecurityOrigin&, const WebNotificationData&, std::unique_ptr<WebNotificationResources>, WebNotificationDelegate*) = 0;
// Shows a persistent notification on the user's system. These notifications will have
// their events delivered to a Service Worker rather than the object's delegate. Will
// take ownership of the WebNotificationShowCallbacks object.
- virtual void showPersistent(const WebSecurityOrigin&, const WebNotificationData&, WebServiceWorkerRegistration*, WebNotificationShowCallbacks*) = 0;
+ virtual void showPersistent(const WebSecurityOrigin&, const WebNotificationData&, std::unique_ptr<WebNotificationResources>, WebServiceWorkerRegistration*, WebNotificationShowCallbacks*) = 0;
// Asynchronously gets the persistent notifications belonging to the Service Worker Registration.
// If |filterTag| is not an empty string, only the notification with the given tag will be

Powered by Google App Engine
This is Rietveld 408576698