OLD | NEW |
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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 protected: | 83 protected: |
84 virtual ~NotificationsClearFunction(); | 84 virtual ~NotificationsClearFunction(); |
85 | 85 |
86 private: | 86 private: |
87 scoped_ptr<api::notifications::Clear::Params> params_; | 87 scoped_ptr<api::notifications::Clear::Params> params_; |
88 | 88 |
89 DECLARE_EXTENSION_FUNCTION("notifications.clear", NOTIFICATIONS_CLEAR) | 89 DECLARE_EXTENSION_FUNCTION("notifications.clear", NOTIFICATIONS_CLEAR) |
90 }; | 90 }; |
91 | 91 |
92 class NotificationsGetAllFunction : public NotificationsApiFunction { | |
93 public: | |
94 NotificationsGetAllFunction(); | |
95 | |
96 // UIThreadExtensionFunction: | |
97 virtual bool RunNotificationsApi() OVERRIDE; | |
98 | |
99 protected: | |
100 virtual ~NotificationsGetAllFunction(); | |
101 | |
102 private: | |
103 DECLARE_EXTENSION_FUNCTION("notifications.getAll", NOTIFICATIONS_GET_ALL) | |
104 }; | |
105 | |
106 } // namespace extensions | 92 } // namespace extensions |
107 | 93 |
108 #endif // CHROME_BROWSER_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATIONS_API_H_ | 94 #endif // CHROME_BROWSER_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATIONS_API_H_ |
OLD | NEW |