| 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_SETTINGS_SYSTEM_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/webui/settings/md_settings_ui.h" | 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| 10 | 10 |
| 11 namespace base { | 11 namespace base { |
| 12 class ListValue; | 12 class ListValue; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace settings { | 15 namespace settings { |
| 16 | 16 |
| 17 class SystemHandler : public SettingsPageUIHandler { | 17 class SystemHandler : public SettingsPageUIHandler { |
| 18 public: | 18 public: |
| 19 SystemHandler(); | 19 SystemHandler(); |
| 20 ~SystemHandler() override; | 20 ~SystemHandler() override; |
| 21 | 21 |
| 22 // SettingsPageUIHandler: | 22 // SettingsPageUIHandler: |
| 23 void RegisterMessages() override; | 23 void RegisterMessages() override; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 // Handler for the "changeProxySettings" message. No args. | 26 // Handler for the "changeProxySettings" message. No args. |
| 27 void HandleChangeProxySettings(const base::ListValue* /*args*/); | 27 void HandleChangeProxySettings(const base::ListValue* /*args*/); |
| 28 | 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(SystemHandler); | 29 DISALLOW_COPY_AND_ASSIGN(SystemHandler); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace settings | 32 } // namespace settings |
| 33 | 33 |
| 34 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_ | 34 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_ |
| OLD | NEW |