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