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

Side by Side Diff: chrome/browser/ui/webui/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: Rebasing, removing call to AddMojoResources() Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PLUGINS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PLUGINS_UI_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/web_ui_controller.h" 9 #include "chrome/browser/ui/webui/mojo_web_ui_controller.h"
10 #include "chrome/browser/ui/webui/plugins.mojom.h"
10 #include "ui/base/layout.h" 11 #include "ui/base/layout.h"
11 12
12 namespace base { 13 namespace base {
13 class RefCountedMemory; 14 class RefCountedMemory;
14 } 15 }
15 16
16 namespace user_prefs { 17 namespace user_prefs {
17 class PrefRegistrySyncable; 18 class PrefRegistrySyncable;
18 } 19 }
19 20
20 class PluginsUI : public content::WebUIController { 21 class PluginsUI : public MojoWebUIController<PluginsHandlerMojo> {
21 public: 22 public:
22 explicit PluginsUI(content::WebUI* web_ui); 23 explicit PluginsUI(content::WebUI* web_ui);
23 24
24 static base::RefCountedMemory* GetFaviconResourceBytes( 25 static base::RefCountedMemory* GetFaviconResourceBytes(
25 ui::ScaleFactor scale_factor); 26 ui::ScaleFactor scale_factor);
26 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 27 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
27 28
28 private: 29 private:
30 // MojoWebUIController overrides:
31 void BindUIHandler(
32 mojo::InterfaceRequest<PluginsHandlerMojo> request) override;
33
29 DISALLOW_COPY_AND_ASSIGN(PluginsUI); 34 DISALLOW_COPY_AND_ASSIGN(PluginsUI);
30 }; 35 };
31 36
32 #endif // CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_UI_H_ 37 #endif // CHROME_BROWSER_UI_WEBUI_PLUGINS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698