OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_HANDLER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/prefs/pref_member.h" | |
10 #include "base/values.h" | 9 #include "base/values.h" |
11 #include "chrome/browser/ui/webui/mojo_web_ui_handler.h" | 10 #include "chrome/browser/ui/webui/mojo_web_ui_handler.h" |
12 #include "chrome/browser/ui/webui/plugins/plugins.mojom.h" | 11 #include "chrome/browser/ui/webui/plugins/plugins.mojom.h" |
| 12 #include "components/prefs/pref_member.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 #include "content/public/browser/notification_source.h" | 15 #include "content/public/browser/notification_source.h" |
16 #include "content/public/browser/web_ui_message_handler.h" | 16 #include "content/public/browser/web_ui_message_handler.h" |
17 #include "content/public/common/webplugininfo.h" | 17 #include "content/public/common/webplugininfo.h" |
18 #include "mojo/public/cpp/bindings/binding.h" | 18 #include "mojo/public/cpp/bindings/binding.h" |
19 | 19 |
20 class PluginsHandler : public MojoWebUIHandler, | 20 class PluginsHandler : public MojoWebUIHandler, |
21 public PluginsHandlerMojo, | 21 public PluginsHandlerMojo, |
22 public content::NotificationObserver { | 22 public content::NotificationObserver { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Handle back to the page by which JS methods can be called. | 86 // Handle back to the page by which JS methods can be called. |
87 PluginsPageMojoPtr page_; | 87 PluginsPageMojoPtr page_; |
88 | 88 |
89 base::WeakPtrFactory<PluginsHandler> weak_ptr_factory_; | 89 base::WeakPtrFactory<PluginsHandler> weak_ptr_factory_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(PluginsHandler); | 91 DISALLOW_COPY_AND_ASSIGN(PluginsHandler); |
92 }; | 92 }; |
93 | 93 |
94 #endif // CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_HANDLER_H_ | 94 #endif // CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_HANDLER_H_ |
OLD | NEW |