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

Unified Diff: chrome/browser/extensions/api/app/app_api.h

Issue 10080017: Switch platform apps from a declarative launch container to handling an onLaunched event. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove debug logging code Created 8 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app/app_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/app/app_api.h
diff --git a/chrome/browser/extensions/api/app/app_api.h b/chrome/browser/extensions/api/app/app_api.h
index 66299d65bc8fa92b45c2483e53a0ece7c3ae71f8..e2789c9d05a400499cd000a5c2f745bfe2b1481b 100644
--- a/chrome/browser/extensions/api/app/app_api.h
+++ b/chrome/browser/extensions/api/app/app_api.h
@@ -8,6 +8,11 @@
#include "chrome/browser/extensions/extension_function.h"
+class Extension;
+class Profile;
+
+namespace extensions {
+
class AppNotifyFunction : public SyncExtensionFunction {
virtual ~AppNotifyFunction() {}
virtual bool RunImpl() OVERRIDE;
@@ -20,4 +25,13 @@ class AppClearAllNotificationsFunction : public SyncExtensionFunction {
DECLARE_EXTENSION_FUNCTION_NAME("experimental.app.clearAllNotifications");
};
+class AppEventRouter {
+ public:
+ // Dispatches the onLaunched event to the given app.
+ static void DispatchOnLaunchedEvent(Profile* profile,
+ const Extension* extension);
+};
+
+} // namespace extensions
+
#endif // CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app/app_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698