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

Side by Side Diff: chrome/browser/extensions/api/synced_notifications_private/synced_notifications_private_api.h

Issue 267863005: Adds syncedNotificationsPrivate API IDL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(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 AsyncExtensionFunction {
16 public:
17 SyncedNotificationsPrivateGetInitialDataFunction();
18 DECLARE_EXTENSION_FUNCTION("syncedNotificationsPrivate.getInitialData",
19 SYNCEDNOTIFICATIONSPRIVATE_GETINITIALDATA);
20
21 protected:
22 virtual ~SyncedNotificationsPrivateGetInitialDataFunction();
23 virtual bool RunImpl() OVERRIDE;
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(SyncedNotificationsPrivateGetInitialDataFunction);
27 };
28
29 class SyncedNotificationsPrivateUpdateNotificationFunction
30 : public AsyncExtensionFunction {
31 public:
32 SyncedNotificationsPrivateUpdateNotificationFunction();
33 DECLARE_EXTENSION_FUNCTION("syncedNotificationsPrivate.updateNotification",
34 SYNCEDNOTIFICATIONSPRIVATE_UPDATENOTIFICATION);
35
36 protected:
37 virtual ~SyncedNotificationsPrivateUpdateNotificationFunction();
38 virtual bool RunImpl() OVERRIDE;
39
40 private:
41 DISALLOW_COPY_AND_ASSIGN(
42 SyncedNotificationsPrivateUpdateNotificationFunction);
43 };
44
45 class SyncedNotificationsPrivateSetRenderContextFunction
46 : public AsyncExtensionFunction {
47 public:
48 SyncedNotificationsPrivateSetRenderContextFunction();
49 DECLARE_EXTENSION_FUNCTION("syncedNotificationsPrivate.setRenderContext",
50 SYNCEDNOTIFICATIONSPRIVATE_SETRENDERCONTEXT);
51
52 protected:
53 virtual ~SyncedNotificationsPrivateSetRenderContextFunction();
54 virtual bool RunImpl() 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698