| 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 ac29dfb4946c3ecbb478e9e4d9bf12a18dacba37..23c1753d35c42a0797a8d3fd52e5532021ff595d 100644
|
| --- a/chrome/browser/dom_ui/app_launcher_handler.h
|
| +++ b/chrome/browser/dom_ui/app_launcher_handler.h
|
| @@ -9,11 +9,15 @@
|
| #include "base/scoped_ptr.h"
|
| #include "chrome/browser/dom_ui/dom_ui.h"
|
| #include "chrome/browser/extensions/extension_install_ui.h"
|
| +#include "chrome/browser/prefs/pref_change_registrar.h"
|
| #include "chrome/common/notification_observer.h"
|
| #include "chrome/common/notification_registrar.h"
|
|
|
| class Extension;
|
| +class ExtensionPrefs;
|
| class ExtensionsService;
|
| +class NotificationRegistrar;
|
| +class PrefChangeRegistrar;
|
|
|
| namespace gfx {
|
| class Rect;
|
| @@ -38,7 +42,12 @@ class AppLauncherHandler
|
| const NotificationDetails& details);
|
|
|
| // Populate a dictionary with the information from an extension.
|
| - static void CreateAppInfo(Extension* extension, DictionaryValue* value);
|
| + static void CreateAppInfo(Extension* extension,
|
| + ExtensionPrefs* extension_prefs,
|
| + DictionaryValue* value);
|
| +
|
| + // Populate the given dictionary with all installed app info.
|
| + void FillAppDictionary(DictionaryValue* value);
|
|
|
| // Callback for the "getApps" message.
|
| void HandleGetApps(const ListValue* args);
|
| @@ -46,6 +55,9 @@ class AppLauncherHandler
|
| // Callback for the "launchApp" message.
|
| void HandleLaunchApp(const ListValue* args);
|
|
|
| + // Callback for the "setLaunchType" message.
|
| + void HandleSetLaunchType(const ListValue* args);
|
| +
|
| // Callback for the "uninstallApp" message.
|
| void HandleUninstallApp(const ListValue* args);
|
|
|
| @@ -69,6 +81,9 @@ class AppLauncherHandler
|
| // when necessary.
|
| NotificationRegistrar registrar_;
|
|
|
| + // Monitor extension preference changes so that the DOM UI can be notified.
|
| + PrefChangeRegistrar pref_change_registrar_;
|
| +
|
| // Used to show confirmation UI for uninstalling/enabling extensions in
|
| // incognito mode.
|
| scoped_ptr<ExtensionInstallUI> install_ui_;
|
|
|