| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_EXTENSION_CONTROL_HANDLER_H_ |
| #define CHROME_BROWSER_UI_WEBUI_SETTINGS_EXTENSION_CONTROL_HANDLER_H_ |
| |
| #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| |
| namespace settings { |
| |
| class ExtensionControlHandler : public SettingsPageUIHandler { |
| public: |
| ExtensionControlHandler(); |
| |
| ExtensionControlHandler(const ExtensionControlHandler&) = delete; |
| ExtensionControlHandler& operator=(const ExtensionControlHandler&) = delete; |
| |
| ~ExtensionControlHandler() override; |
| |
| // SettingsPageUIHandler: |
| void RegisterMessages() override; |
| void OnJavascriptAllowed() override {} |
| void OnJavascriptDisallowed() override {} |
| |
| private: |
| // Handler for the "disableExtension" message. Extension ID is passed as the |
| // single string argument. |
| void HandleDisableExtension(const base::Value::List& args); |
| }; |
| |
| } // namespace settings |
| |
| #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_EXTENSION_CONTROL_HANDLER_H_ |