Chromium Code Reviews| Index: chrome/browser/dom_ui/app_launcher_handler.h |
| diff --git a/chrome/browser/dom_ui/app_launcher_handler.h b/chrome/browser/dom_ui/app_launcher_handler.h |
| index 5a3478ecb88cea16a92e40c4ba8692ed875e9ca5..ee20c106abce273e8705e8c70093955066161cc8 100644 |
| --- a/chrome/browser/dom_ui/app_launcher_handler.h |
| +++ b/chrome/browser/dom_ui/app_launcher_handler.h |
| @@ -64,6 +64,9 @@ class AppLauncherHandler |
| // Callback for the "hideAppPromo" message. |
| void HandleHideAppsPromo(const ListValue* args); |
| + // Callback for pings related to launching apps on the NTP. |
| + static bool HandlePing(const std::string& path); |
|
Aaron Boodman
2010/11/12 19:01:02
We seem to usually put the statics methods togethe
|
| + |
| private: |
| // ExtensionInstallUI::Delegate implementation, used for receiving |
| // notification about uninstall confirmation dialog selections. |
| @@ -77,6 +80,14 @@ class AppLauncherHandler |
| // Starts the animation of the app icon. |
| void AnimateAppIcon(const Extension* extension, const gfx::Rect& rect); |
| + // Records a web store launch in the appropriate histograms. |promo_active| |
| + // specifies if the web store promotion was active. |
| + static void RecordWebStoreLaunch(bool promo_active); |
|
Aaron Boodman
2010/11/12 19:01:02
Same here.
|
| + |
| + // Records an app launch in the appropriate histograms. |promo_active| |
| + // specifies if the web store promotion was active. |
| + static void RecordAppLaunch(bool promo_active); |
| + |
| // The apps are represented in the extensions model. |
| scoped_refptr<ExtensionsService> extensions_service_; |
| @@ -94,6 +105,9 @@ class AppLauncherHandler |
| // The id of the extension we are prompting the user about. |
| std::string extension_id_prompting_; |
| + // Whether the promo is currently being shown. |
| + bool promo_active_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(AppLauncherHandler); |
| }; |