| 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/settings_page_ui_handler.h" | 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class SystemHandler : public SettingsPageUIHandler { | 21 class SystemHandler : public SettingsPageUIHandler { |
| 22 public: | 22 public: |
| 23 SystemHandler(); | 23 SystemHandler(); |
| 24 ~SystemHandler() override; | 24 ~SystemHandler() override; |
| 25 | 25 |
| 26 // Populates handler-specific loadTimeData values used by the system page. | 26 // Populates handler-specific loadTimeData values used by the system page. |
| 27 static void AddLoadTimeData(content::WebUIDataSource* data_source); | 27 static void AddLoadTimeData(content::WebUIDataSource* data_source); |
| 28 | 28 |
| 29 // SettingsPageUIHandler: | 29 // SettingsPageUIHandler: |
| 30 void RegisterMessages() override; | 30 void RegisterMessages() override; |
| 31 void OnJavascriptAllowed() override {} |
| 32 void OnJavascriptDisallowed() override {} |
| 31 | 33 |
| 32 private: | 34 private: |
| 33 // Handler for the "changeProxySettings" message. No args. | 35 // Handler for the "changeProxySettings" message. No args. |
| 34 void HandleChangeProxySettings(const base::ListValue* /*args*/); | 36 void HandleChangeProxySettings(const base::ListValue* /*args*/); |
| 35 | 37 |
| 36 // Handler for the "restartBrowser" message. No args. | 38 // Handler for the "restartBrowser" message. No args. |
| 37 void HandleRestartBrowser(const base::ListValue* /*args*/); | 39 void HandleRestartBrowser(const base::ListValue* /*args*/); |
| 38 | 40 |
| 39 DISALLOW_COPY_AND_ASSIGN(SystemHandler); | 41 DISALLOW_COPY_AND_ASSIGN(SystemHandler); |
| 40 }; | 42 }; |
| 41 | 43 |
| 42 } // namespace settings | 44 } // namespace settings |
| 43 | 45 |
| 44 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_ | 46 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_ |
| OLD | NEW |