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;
OnJavascriptAllowed()24   void OnJavascriptAllowed() override {}
OnJavascriptDisallowed()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_
38