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

Side by Side Diff: chrome/browser/ui/webui/plugins/plugins_handler.h

Issue 2530563002: Remove the enable/disable links for the about:plugins page. (Closed)
Patch Set: Created 4 years 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 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/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/ui/webui/mojo_web_ui_handler.h" 10 #include "chrome/browser/ui/webui/mojo_web_ui_handler.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 PluginsPageHandler(content::WebUI* web_ui, 24 PluginsPageHandler(content::WebUI* web_ui,
25 mojo::InterfaceRequest<mojom::PluginsPageHandler> request); 25 mojo::InterfaceRequest<mojom::PluginsPageHandler> request);
26 ~PluginsPageHandler() override; 26 ~PluginsPageHandler() override;
27 27
28 // mojom::PluginsPageHandler overrides: 28 // mojom::PluginsPageHandler overrides:
29 void GetPluginsData(const GetPluginsDataCallback& callback) override; 29 void GetPluginsData(const GetPluginsDataCallback& callback) override;
30 void GetShowDetails(const GetShowDetailsCallback& callback) override; 30 void GetShowDetails(const GetShowDetailsCallback& callback) override;
31 void SaveShowDetailsToPrefs(bool details_mode) override; 31 void SaveShowDetailsToPrefs(bool details_mode) override;
32 void SetPluginAlwaysAllowed(const std::string& plugin, bool allowed) override; 32 void SetPluginAlwaysAllowed(const std::string& plugin, bool allowed) override;
33 void SetPluginEnabled(const std::string& plugin_path, bool enable) override;
34 void SetPluginGroupEnabled(const std::string& group_name,
35 bool enable) override;
36 void SetClientPage(mojom::PluginsPagePtr page) override; 33 void SetClientPage(mojom::PluginsPagePtr page) override;
37 34
38 // content::NotificationObserver implementation. 35 // content::NotificationObserver implementation.
39 void Observe(int type, 36 void Observe(int type,
40 const content::NotificationSource& source, 37 const content::NotificationSource& source,
41 const content::NotificationDetails& details) override; 38 const content::NotificationDetails& details) override;
42 39
43 private: 40 private:
44 std::vector<mojom::PluginDataPtr> GeneratePluginsData( 41 std::vector<mojom::PluginDataPtr> GeneratePluginsData(
45 const std::vector<content::WebPluginInfo>& plugins); 42 const std::vector<content::WebPluginInfo>& plugins);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 85
89 // 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.
90 mojom::PluginsPagePtr page_; 87 mojom::PluginsPagePtr page_;
91 88
92 base::WeakPtrFactory<PluginsPageHandler> weak_ptr_factory_; 89 base::WeakPtrFactory<PluginsPageHandler> weak_ptr_factory_;
93 90
94 DISALLOW_COPY_AND_ASSIGN(PluginsPageHandler); 91 DISALLOW_COPY_AND_ASSIGN(PluginsPageHandler);
95 }; 92 };
96 93
97 #endif // CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_HANDLER_H_ 94 #endif // CHROME_BROWSER_UI_WEBUI_PLUGINS_PLUGINS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/plugins/plugins.mojom ('k') | chrome/browser/ui/webui/plugins/plugins_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698