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

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: asargent review suggestion 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..9f94a3cfaf8190831387c0630c75fbc23b952090 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 {
- public:
- DECLARE_EXTENSION_FUNCTION_NAME("notification.show")
+class ApiResourceEventNotifier;
+class NotificationShowFunction : public ApiFunction {
+ public:
NotificationShowFunction();
- // AsyncApiFunction:
- virtual bool Prepare() OVERRIDE;
- virtual void Work() OVERRIDE;
- virtual bool Respond() OVERRIDE;
+ // UIThreadExtensionFunction:
+ virtual bool RunImpl() OVERRIDE;
protected:
virtual ~NotificationShowFunction();
private:
scoped_ptr<api::experimental_notification::Show::Params> params_;
+ int src_id_;
+ ApiResourceEventNotifier* event_notifier_;
+
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.notification.show")
};
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/api_function.cc ('k') | chrome/browser/extensions/api/notification/notification_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698