Chromium Code Reviews| 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 | |
| 11 namespace base { | |
| 12 class ListValue; | |
| 13 } | |
| 14 | |
| 15 namespace extensions { | |
| 16 class Extension; | |
| 17 } | |
| 18 | |
| 19 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.
| |
| 20 public: | |
| 21 explicit ExtensionInfoUI(content::WebUI* web_ui); | |
| 22 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.
| |
| 23 | |
| 24 // Returns the chrome://extension-info/ URL for this extension. | |
| 25 static GURL GetURL(const std::string& extension_id); | |
| 26 | |
| 27 private: | |
| 28 // Callback for "requestExtensionInfo" message. | |
| 29 void HandleRequestExtensionInfo(const base::ListValue* args); | |
| 30 | |
| 31 const extensions::Extension* extension_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoUI); | |
| 34 }; | |
| 35 | |
| 36 #endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSION_INFO_UI_H_ | |
| OLD | NEW |