Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3276)

Unified Diff: chrome/browser/ui/webui/plugins/plugins_ui.h

Issue 1576183003: chrome://plugins Mojo-ification part 2/2, populating the page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plugins_mojo1
Patch Set: Nit Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/plugins/plugins_handler.cc ('k') | chrome/browser/ui/webui/plugins/plugins_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/plugins/plugins_ui.h
diff --git a/chrome/browser/ui/webui/plugins/plugins_ui.h b/chrome/browser/ui/webui/plugins/plugins_ui.h
index d187d6dd2de80d4998d58521040a50ace8118053..f2f6e123f8ff6186f75f8fef40e5ad9e8002df11 100644
--- a/chrome/browser/ui/webui/plugins/plugins_ui.h
+++ b/chrome/browser/ui/webui/plugins/plugins_ui.h
@@ -6,7 +6,8 @@
#define CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_UI_H_
#include "base/macros.h"
-#include "content/public/browser/web_ui_controller.h"
+#include "chrome/browser/ui/webui/mojo_web_ui_controller.h"
+#include "chrome/browser/ui/webui/plugins/plugins.mojom.h"
#include "ui/base/layout.h"
namespace base {
@@ -17,15 +18,24 @@ namespace user_prefs {
class PrefRegistrySyncable;
}
-class PluginsUI : public content::WebUIController {
+class PluginsHandler;
+
+class PluginsUI : public MojoWebUIController<PluginsHandlerMojo> {
public:
explicit PluginsUI(content::WebUI* web_ui);
+ ~PluginsUI() override;
static base::RefCountedMemory* GetFaviconResourceBytes(
ui::ScaleFactor scale_factor);
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
private:
+ // MojoWebUIController overrides:
+ void BindUIHandler(
+ mojo::InterfaceRequest<PluginsHandlerMojo> request) override;
+
+ scoped_ptr<PluginsHandler> plugins_handler_;
+
DISALLOW_COPY_AND_ASSIGN(PluginsUI);
};
« no previous file with comments | « chrome/browser/ui/webui/plugins/plugins_handler.cc ('k') | chrome/browser/ui/webui/plugins/plugins_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698