Chromium Code Reviews| Index: chrome/browser/ui/webui/extensions/extension_info_ui.h |
| diff --git a/chrome/browser/ui/webui/extensions/extension_info_ui.h b/chrome/browser/ui/webui/extensions/extension_info_ui.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..02306b95c1faad7814c7eba165526d196300eee0 |
| --- /dev/null |
| +++ b/chrome/browser/ui/webui/extensions/extension_info_ui.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_ |
| +#define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_ |
| +#pragma once |
| + |
| +#include "content/public/browser/web_ui_controller.h" |
| + |
| +namespace base { |
| +class ListValue; |
| +} |
| + |
| +namespace extensions { |
| +class Extension; |
| +} |
| + |
| +class ExtensionInfoUI : public content::WebUIController { |
|
Aaron Boodman
2012/06/16 02:21:19
Class-level comment.
Yoyo Zhou
2012/06/18 19:39:38
Commented.
|
| + public: |
| + explicit ExtensionInfoUI(content::WebUI* web_ui); |
| + virtual ~ExtensionInfoUI(); |
|
Aaron Boodman
2012/06/16 02:21:19
Destructor can probably be private (because only e
Yoyo Zhou
2012/06/18 19:39:38
Done.
|
| + |
| + // Returns the chrome://extension-info/ URL for this extension. |
| + static GURL GetURL(const std::string& extension_id); |
| + |
| + private: |
| + // Callback for "requestExtensionInfo" message. |
| + void HandleRequestExtensionInfo(const base::ListValue* args); |
| + |
| + const extensions::Extension* extension_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ExtensionInfoUI); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_ |