blob: 446cc5f24150e40efa15f21bb7c96655e0e246e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// 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_SYSTEM_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_
#include "base/macros.h"
#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
namespace base {
class ListValue;
}
namespace content {
class WebUIDataSource;
}
namespace settings {
class SystemHandler : public SettingsPageUIHandler {
public:
SystemHandler();
~SystemHandler() override;
// Populates handler-specific loadTimeData values used by the system page.
static void AddLoadTimeData(content::WebUIDataSource* data_source);
// SettingsPageUIHandler:
void RegisterMessages() override;
private:
// Handler for the "changeProxySettings" message. No args.
void HandleChangeProxySettings(const base::ListValue* /*args*/);
// Handler for the "restartBrowser" message. No args.
void HandleRestartBrowser(const base::ListValue* /*args*/);
DISALLOW_COPY_AND_ASSIGN(SystemHandler);
};
} // namespace settings
#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SYSTEM_HANDLER_H_
|