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

Unified Diff: chrome/browser/extensions/api/notification/notification_api.h

Issue 11116016: Hook up API to notification_ui_manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698