| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOTIFI
CATIONS_PRIVATE_API_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOTIFI
CATIONS_PRIVATE_API_H_ | |
| 7 | |
| 8 #include "chrome/browser/extensions/chrome_extension_function.h" | |
| 9 #include "chrome/common/extensions/api/synced_notifications_private.h" | |
| 10 | |
| 11 namespace extensions { | |
| 12 namespace api { | |
| 13 | |
| 14 class SyncedNotificationsPrivateGetInitialDataFunction | |
| 15 : public UIThreadExtensionFunction { | |
| 16 public: | |
| 17 SyncedNotificationsPrivateGetInitialDataFunction(); | |
| 18 DECLARE_EXTENSION_FUNCTION("syncedNotificationsPrivate.getInitialData", | |
| 19 SYNCEDNOTIFICATIONSPRIVATE_GETINITIALDATA); | |
| 20 | |
| 21 protected: | |
| 22 ~SyncedNotificationsPrivateGetInitialDataFunction() override; | |
| 23 ResponseAction Run() override; | |
| 24 | |
| 25 private: | |
| 26 DISALLOW_COPY_AND_ASSIGN(SyncedNotificationsPrivateGetInitialDataFunction); | |
| 27 }; | |
| 28 | |
| 29 class SyncedNotificationsPrivateUpdateNotificationFunction | |
| 30 : public UIThreadExtensionFunction { | |
| 31 public: | |
| 32 SyncedNotificationsPrivateUpdateNotificationFunction(); | |
| 33 DECLARE_EXTENSION_FUNCTION("syncedNotificationsPrivate.updateNotification", | |
| 34 SYNCEDNOTIFICATIONSPRIVATE_UPDATENOTIFICATION); | |
| 35 | |
| 36 protected: | |
| 37 ~SyncedNotificationsPrivateUpdateNotificationFunction() override; | |
| 38 ResponseAction Run() override; | |
| 39 | |
| 40 private: | |
| 41 DISALLOW_COPY_AND_ASSIGN( | |
| 42 SyncedNotificationsPrivateUpdateNotificationFunction); | |
| 43 }; | |
| 44 | |
| 45 class SyncedNotificationsPrivateSetRenderContextFunction | |
| 46 : public UIThreadExtensionFunction { | |
| 47 public: | |
| 48 SyncedNotificationsPrivateSetRenderContextFunction(); | |
| 49 DECLARE_EXTENSION_FUNCTION("syncedNotificationsPrivate.setRenderContext", | |
| 50 SYNCEDNOTIFICATIONSPRIVATE_SETRENDERCONTEXT); | |
| 51 | |
| 52 protected: | |
| 53 ~SyncedNotificationsPrivateSetRenderContextFunction() override; | |
| 54 ResponseAction Run() override; | |
| 55 | |
| 56 private: | |
| 57 DISALLOW_COPY_AND_ASSIGN(SyncedNotificationsPrivateSetRenderContextFunction); | |
| 58 }; | |
| 59 | |
| 60 } // namespace api | |
| 61 } // namespace extensions | |
| 62 | |
| 63 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNCED_NOTIFICATIONS_PRIVATE_SYNCED_NOT
IFICATIONS_PRIVATE_API_H_ | |
| OLD | NEW |