1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOTIFICATIONS_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOTIFICATIONS_PRIVATE_API_H_
8 #include "chrome/browser/extensions/chrome_extension_function.h"
9 #include "chrome/common/extensions/api/synced_notifications_private.h"
11 namespace extensions {
14 class SyncedNotificationsPrivateGetInitialDataFunction
15 : public UIThreadExtensionFunction {
17 SyncedNotificationsPrivateGetInitialDataFunction();
18 DECLARE_EXTENSION_FUNCTION("syncedNotificationsPrivate.getInitialData",
19 SYNCEDNOTIFICATIONSPRIVATE_GETINITIALDATA);
22 ~SyncedNotificationsPrivateGetInitialDataFunction() override;
23 ResponseAction Run() override;
26 DISALLOW_COPY_AND_ASSIGN(SyncedNotificationsPrivateGetInitialDataFunction);
29 class SyncedNotificationsPrivateUpdateNotificationFunction
30 : public UIThreadExtensionFunction {
32 SyncedNotificationsPrivateUpdateNotificationFunction();
33 DECLARE_EXTENSION_FUNCTION("syncedNotificationsPrivate.updateNotification",
34 SYNCEDNOTIFICATIONSPRIVATE_UPDATENOTIFICATION);
37 ~SyncedNotificationsPrivateUpdateNotificationFunction() override;
38 ResponseAction Run() override;
41 DISALLOW_COPY_AND_ASSIGN(
42 SyncedNotificationsPrivateUpdateNotificationFunction);
45 class SyncedNotificationsPrivateSetRenderContextFunction
46 : public UIThreadExtensionFunction {
48 SyncedNotificationsPrivateSetRenderContextFunction();
49 DECLARE_EXTENSION_FUNCTION("syncedNotificationsPrivate.setRenderContext",
50 SYNCEDNOTIFICATIONSPRIVATE_SETRENDERCONTEXT);
53 ~SyncedNotificationsPrivateSetRenderContextFunction() override;
54 ResponseAction Run() override;
57 DISALLOW_COPY_AND_ASSIGN(SyncedNotificationsPrivateSetRenderContextFunction);
61 } // namespace extensions
63 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOTIFICATIONS_PRIVATE_API_H_