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

Side by Side Diff: chrome/browser/extensions/api/notifications/notifications_api.h

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: fix test Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATIONS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATIONS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATIONS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATIONS_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "chrome/browser/extensions/chrome_extension_function.h" 12 #include "chrome/browser/extensions/chrome_extension_function.h"
13 #include "chrome/common/extensions/api/notifications.h" 13 #include "chrome/common/extensions/api/notifications.h"
14 #include "extensions/browser/extension_function.h" 14 #include "extensions/browser/extension_function.h"
15 #include "ui/message_center/notification_types.h" 15 #include "ui/message_center/notification_types.h"
16 16
17 class Notification; 17 class Notification;
18 18
19 namespace extensions { 19 namespace extensions {
20 20
21 extern const base::Feature kAllowFullscreenAppNotificationsFeature;
22
23 class ExtensionNotificationDisplayHelper; 21 class ExtensionNotificationDisplayHelper;
24 22
25 class NotificationsApiFunction : public ChromeAsyncExtensionFunction { 23 class NotificationsApiFunction : public ChromeAsyncExtensionFunction {
26 public: 24 public:
27 // Whether the current extension and channel allow the API. Public for 25 // Whether the current extension and channel allow the API. Public for
28 // testing. 26 // testing.
29 bool IsNotificationsApiAvailable(); 27 bool IsNotificationsApiAvailable();
30 28
31 protected: 29 protected:
32 NotificationsApiFunction(); 30 NotificationsApiFunction();
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 ~NotificationsGetPermissionLevelFunction() override; 133 ~NotificationsGetPermissionLevelFunction() override;
136 134
137 private: 135 private:
138 DECLARE_EXTENSION_FUNCTION("notifications.getPermissionLevel", 136 DECLARE_EXTENSION_FUNCTION("notifications.getPermissionLevel",
139 NOTIFICATIONS_GET_ALL) 137 NOTIFICATIONS_GET_ALL)
140 }; 138 };
141 139
142 } // namespace extensions 140 } // namespace extensions
143 141
144 #endif // CHROME_BROWSER_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATIONS_API_H_ 142 #endif // CHROME_BROWSER_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATIONS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698