diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-09 01:47:37 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-09 01:47:37 +0000 |
commit | 829f8e2906fa3251da47e61bbbe002f2c704e60f (patch) | |
tree | dc139d54c9594ce76c28099fcce39640bc689687 /chrome/browser/extensions/extensions_ui.h | |
parent | 71167c0906304846a86280830c91109a080f9fd6 (diff) | |
download | chromium_src-829f8e2906fa3251da47e61bbbe002f2c704e60f.zip chromium_src-829f8e2906fa3251da47e61bbbe002f2c704e60f.tar.gz chromium_src-829f8e2906fa3251da47e61bbbe002f2c704e60f.tar.bz2 |
chrome-ui://extensions/ is now populated with data collected from the ExtensionsService and ExtensionErrorReporter
Review URL: http://codereview.chromium.org/39026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extensions_ui.h')
-rw-r--r-- | chrome/browser/extensions/extensions_ui.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extensions_ui.h b/chrome/browser/extensions/extensions_ui.h index 1298289..3252ddc 100644 --- a/chrome/browser/extensions/extensions_ui.h +++ b/chrome/browser/extensions/extensions_ui.h @@ -9,6 +9,7 @@ #include "chrome/browser/dom_ui/dom_ui.h" #include "chrome/browser/dom_ui/dom_ui_contents.h" +#include "chrome/browser/extensions/extensions_service.h" class GURL; @@ -30,11 +31,28 @@ class ExtensionsUIHTMLSource : public ChromeURLDataManager::DataSource { // The handler for Javascript messages related to the "extensions" view. class ExtensionsDOMHandler : public DOMMessageHandler { public: - explicit ExtensionsDOMHandler(DOMUI* dom_ui); + ExtensionsDOMHandler(DOMUI* dom_ui, + ExtensionsService* extension_service); + virtual ~ExtensionsDOMHandler(); void Init(); + // Extension Detail JSON Struct for page. (static for ease of testing). + static DictionaryValue* + CreateExtensionDetailValue(const Extension *extension); + + // ContentScript JSON Struct for page. (static for ease of testing). + static DictionaryValue* + CreateContentScriptDetailValue(const UserScript& script, + const FilePath& extension_path); + private: + // Callback for "requestExtensionsData" message. + void HandleRequestExtensionsData(const Value* value); + + // Our model. + scoped_refptr<ExtensionsService> extensions_service_; + DISALLOW_COPY_AND_ASSIGN(ExtensionsDOMHandler); }; |