1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_
8 #include "content/public/browser/web_ui_controller.h"
17 class WebUIDataSource
;
20 namespace extensions
{
22 // WebUI controller for the informative bubble shown on clicking a script badge.
23 class ExtensionInfoUI
: public content::WebUIController
{
25 explicit ExtensionInfoUI(content::WebUI
* web_ui
, const GURL
& url
);
27 // Returns the chrome://extension-info/ URL for this extension.
28 static GURL
GetURL(const std::string
& extension_id
);
31 virtual ~ExtensionInfoUI();
33 // Load details about the extension into source_. Called during construction.
34 void AddExtensionDataToSource(const std::string
& extension_id
);
36 content::WebUIDataSource
* source_
;
38 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoUI
);
41 } // namespace extensions
43 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_