summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extensions_ui.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 22:32:39 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-14 22:32:39 +0000
commit0c6da50c299be943b4c04a3953e0931734af7eaf (patch)
treeb5fa120b75591c1fa56a07232cf685ac1b2a8eb8 /chrome/browser/extensions/extensions_ui.h
parenta7918784c2ac95844ae775be2fef06cd3efb092c (diff)
downloadchromium_src-0c6da50c299be943b4c04a3953e0931734af7eaf.zip
chromium_src-0c6da50c299be943b4c04a3953e0931734af7eaf.tar.gz
chromium_src-0c6da50c299be943b4c04a3953e0931734af7eaf.tar.bz2
Disable an extension when it is upgraded to a version that requires more
permissions then before, and prompt the user to re-enable. Incidentally, this required adding support for disabling extensions. BUG=12140 TEST=covered by unit tests Review URL: http://codereview.chromium.org/165414 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23480 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_ui.h')
-rw-r--r--chrome/browser/extensions/extensions_ui.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extensions_ui.h b/chrome/browser/extensions/extensions_ui.h
index c92c2ca..b63b12b 100644
--- a/chrome/browser/extensions/extensions_ui.h
+++ b/chrome/browser/extensions/extensions_ui.h
@@ -57,7 +57,8 @@ class ExtensionsDOMHandler : public DOMMessageHandler {
// Extension Detail JSON Struct for page. (static for ease of testing).
static DictionaryValue* CreateExtensionDetailValue(
const Extension *extension,
- const std::vector<ExtensionPage>&);
+ const std::vector<ExtensionPage>&,
+ bool enabled);
// ContentScript JSON Struct for page. (static for ease of testing).
static DictionaryValue* CreateContentScriptDetailValue(
@@ -74,6 +75,9 @@ class ExtensionsDOMHandler : public DOMMessageHandler {
// Callback for "reload" message.
void HandleReloadMessage(const Value* value);
+ // Callback for "enable" message.
+ void HandleEnableMessage(const Value* value);
+
// Callback for "uninstall" message.
void HandleUninstallMessage(const Value* value);