| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "content/public/browser/web_ui_controller.h" |
| 10 #include "googleurl/src/gurl.h" |
| 11 |
| 12 class ChromeWebUIDataSource; |
| 13 |
| 14 namespace base { |
| 15 class ListValue; |
| 16 } |
| 17 |
| 18 // WebUI controller for the informative bubble shown on clicking a script badge. |
| 19 class ExtensionInfoUI : public content::WebUIController { |
| 20 public: |
| 21 explicit ExtensionInfoUI(content::WebUI* web_ui, const GURL& url); |
| 22 |
| 23 // Returns the chrome://extension-info/ URL for this extension. |
| 24 static GURL GetURL(const std::string& extension_id); |
| 25 |
| 26 private: |
| 27 virtual ~ExtensionInfoUI(); |
| 28 |
| 29 // Load details about the extension into source_. Called during construction. |
| 30 void AddExtensionDataToSource(const std::string& extension_id); |
| 31 |
| 32 ChromeWebUIDataSource* source_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoUI); |
| 35 }; |
| 36 |
| 37 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_ |
| OLD | NEW |