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

Unified Diff: content/browser/notifications/platform_notification_context_impl.h

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: resolves the promise 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: content/browser/notifications/platform_notification_context_impl.h
diff --git a/content/browser/notifications/platform_notification_context_impl.h b/content/browser/notifications/platform_notification_context_impl.h
index f2eb599f4db5d489aec943122325727978c56f49..213c7b58944116754fb26da990e1048654215fcf 100644
--- a/content/browser/notifications/platform_notification_context_impl.h
+++ b/content/browser/notifications/platform_notification_context_impl.h
@@ -18,6 +18,7 @@
#include "content/common/content_export.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/platform_notification_context.h"
+#include "third_party/WebKit/public/platform/modules/notifications/notification_service.mojom.h"
class GURL;
@@ -54,6 +55,14 @@ class CONTENT_EXPORT PlatformNotificationContextImpl
// To be called on the UI thread when the context is being shut down.
void Shutdown();
+ // Creates a BlinkNotificationServiceImpl that is owned by this context. Will
+ // be called on the UI thread when an interface request is received.
+ void CreateService(
+ mojo::InterfaceRequest<blink::mojom::NotificationService> request);
+
+ // Returns the associated browser context.
+ BrowserContext* browser_context() const { return browser_context_; }
+
// PlatformNotificationContext implementation.
void ReadNotificationData(int64_t notification_id,
const GURL& origin,

Powered by Google App Engine
This is Rietveld 408576698