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

Unified Diff: chrome/browser/extensions/api/notifications/notifications_api.h

Issue 2703213004: Migrate extension notifications to the new NotificationDisplayService (Closed)
Patch Set: Migrate extension notifications to the new NotificationDisplayService Created 3 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: chrome/browser/extensions/api/notifications/notifications_api.h
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.h b/chrome/browser/extensions/api/notifications/notifications_api.h
index d7bb4b712c7d7e59fb6f9af9192c560a3d711baf..1a21c1189656b464fc497bba6527de6f86067e90 100644
--- a/chrome/browser/extensions/api/notifications/notifications_api.h
+++ b/chrome/browser/extensions/api/notifications/notifications_api.h
@@ -20,6 +20,8 @@ namespace extensions {
extern const base::Feature kAllowFullscreenAppNotificationsFeature;
+class ExtensionNotificationDisplayHelper;
+
class NotificationsApiFunction : public ChromeAsyncExtensionFunction {
public:
// Whether the current extension and channel allow the API. Public for
@@ -40,6 +42,10 @@ class NotificationsApiFunction : public ChromeAsyncExtensionFunction {
bool AreExtensionNotificationsAllowed() const;
+ // Returns the display helper that should be used for interacting with the
+ // common notification system.
+ ExtensionNotificationDisplayHelper* GetDisplayHelper() const;
+
// Returns true if the API function is still allowed to run even when the
// notifications for a notifier have been disabled.
virtual bool CanRunWhileDisabled() const;

Powered by Google App Engine
This is Rietveld 408576698