Chromium Code Reviews| Index: chrome/browser/extensions/api/notification/notification_api.h |
| diff --git a/chrome/browser/extensions/api/notification/notification_api.h b/chrome/browser/extensions/api/notification/notification_api.h |
| index 520eb0e648ffc7bb92878fdd3fb2dc0c2576ba2f..9523d2c6e27da21bc237b0a6b2af10f866a6805e 100644 |
| --- a/chrome/browser/extensions/api/notification/notification_api.h |
| +++ b/chrome/browser/extensions/api/notification/notification_api.h |
| @@ -15,22 +15,24 @@ |
| namespace extensions { |
| -class NotificationShowFunction : public AsyncApiFunction { |
| +class ApiResourceEventNotifier; |
| + |
| +class NotificationShowFunction : public ApiFunction { |
| public: |
| - DECLARE_EXTENSION_FUNCTION_NAME("notification.show") |
| + DECLARE_EXTENSION_FUNCTION_NAME("experimental.notification.show") |
|
asargent_no_longer_on_chrome
2012/10/15 19:26:25
style nit: I think we usually put the DECLARE_EXTE
|
| NotificationShowFunction(); |
| - // AsyncApiFunction: |
| - virtual bool Prepare() OVERRIDE; |
| - virtual void Work() OVERRIDE; |
| - virtual bool Respond() OVERRIDE; |
| + // UIThreadExtensionFunction: |
|
dharcourt
2012/10/12 22:38:50
For my education: Both the ApiFunction superclass
miket_OOO
2012/10/15 17:13:11
I think you're asking a general C++ question, but
|
| + virtual bool RunImpl() OVERRIDE; |
| protected: |
| virtual ~NotificationShowFunction(); |
| private: |
| scoped_ptr<api::experimental_notification::Show::Params> params_; |
| + int src_id_; |
| + ApiResourceEventNotifier* event_notifier_; |
| }; |
| } // namespace extensions |