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

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

Issue 1988463002: MD Settings: Convert C++ handlers to be JavaScript-lifecycle aware. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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
« no previous file with comments | « chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698