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

Side by Side Diff: chrome/browser/ui/webui/settings/extension_control_handler.h

Issue 2509543002: MD Settings: create a shared handler/browser proxy to control extensions (Closed)
Patch Set: merge Created 4 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_EXTENSION_CONTROL_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_EXTENSION_CONTROL_HANDLER_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
10
11 namespace base {
12 class ListValue;
13 }
14
15 namespace settings {
16
17 class ExtensionControlHandler : public SettingsPageUIHandler {
18 public:
19 ExtensionControlHandler();
20 ~ExtensionControlHandler() override;
21
22 // SettingsPageUIHandler:
23 void RegisterMessages() override;
24 void OnJavascriptAllowed() override {}
25 void OnJavascriptDisallowed() override {}
26
27 private:
28 // Handler for the "disableExtension" message. Extension ID is passed as the
29 // single string argument.
30 void HandleDisableExtension(const base::ListValue* args);
31
32 DISALLOW_COPY_AND_ASSIGN(ExtensionControlHandler);
33 };
34
35 } // namespace settings
36
37 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_EXTENSION_CONTROL_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/webui/settings/extension_control_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698