summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extensions_ui.h
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 03:27:39 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 03:27:39 +0000
commita487176a89c3a2aff8226c8c1d9acc55ce70e483 (patch)
treecdbace8fd15777bad4a317328c5c7431d27f1d42 /chrome/browser/extensions/extensions_ui.h
parentb6a040a170be44d208a5ab379931c571232dd3e2 (diff)
downloadchromium_src-a487176a89c3a2aff8226c8c1d9acc55ce70e483.zip
chromium_src-a487176a89c3a2aff8226c8c1d9acc55ce70e483.tar.gz
chromium_src-a487176a89c3a2aff8226c8c1d9acc55ce70e483.tar.bz2
Add confirmation on extension uninstallation.
Reuses the Install dialog (and makes it slightly more generic). BUG=27162 TEST=None Review URL: http://codereview.chromium.org/376030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31540 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_ui.h')
-rw-r--r--chrome/browser/extensions/extensions_ui.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extensions_ui.h b/chrome/browser/extensions/extensions_ui.h
index 352e42c..d2fe206 100644
--- a/chrome/browser/extensions/extensions_ui.h
+++ b/chrome/browser/extensions/extensions_ui.h
@@ -10,6 +10,7 @@
#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
#include "chrome/browser/dom_ui/dom_ui.h"
+#include "chrome/browser/extensions/extension_install_ui.h"
#include "chrome/browser/extensions/pack_extension_job.h"
#include "chrome/browser/shell_dialogs.h"
#include "chrome/common/extensions/extension_resource.h"
@@ -58,7 +59,8 @@ class ExtensionsDOMHandler
: public DOMMessageHandler,
public NotificationObserver,
public PackExtensionJob::Client,
- public SelectFileDialog::Listener {
+ public SelectFileDialog::Listener,
+ public ExtensionInstallUI::Delegate {
public:
// Helper class that loads the icons for the extensions in the management UI.
@@ -118,6 +120,11 @@ class ExtensionsDOMHandler
virtual void OnPackFailure(const std::wstring& message);
+ // ExtensionInstallUI::Delegate implementation, used for receiving
+ // notification about uninstall confirmation dialog selections.
+ virtual void InstallUIProceed();
+ virtual void InstallUIAbort();
+
private:
// Callback for "requestExtensionsData" message.
void HandleRequestExtensionsData(const Value* value);
@@ -203,6 +210,9 @@ class ExtensionsDOMHandler
// necessary.
NotificationRegistrar registrar_;
+ // The id of the extension we are about to un-install.
+ std::string extension_id_uninstalling_;
+
DISALLOW_COPY_AND_ASSIGN(ExtensionsDOMHandler);
};