OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_WEBUI_POLICY_UI_H_ | |
6 #define CHROME_BROWSER_UI_WEBUI_POLICY_UI_H_ | |
7 #pragma once | |
8 | |
9 #include "base/scoped_ptr.h" | |
10 #include "base/values.h" | |
11 #include "chrome/browser/policy/configuration_policy_reader.h" | |
12 #include "chrome/browser/ui/webui/chrome_web_ui.h" | |
13 #include "content/common/notification_observer.h" | |
14 | |
15 // The base class handler of Javascript messages of the about:policy page. | |
16 class PolicyUIHandler : public WebUIMessageHandler { | |
17 public: | |
Mattias Nissler (ping if slow)
2011/08/12 09:42:05
indentation.
simo
2011/08/16 17:36:34
Done.
| |
18 PolicyUIHandler(); | |
19 virtual ~PolicyUIHandler(); | |
20 | |
21 // WebUIMessageHandler implementation. | |
22 virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE; | |
23 virtual void RegisterMessages() OVERRIDE; | |
24 | |
25 private: | |
26 | |
Mattias Nissler (ping if slow)
2011/08/12 09:42:05
no newline
simo
2011/08/16 17:36:34
Done.
| |
27 // Callback for the "requestPolicyData" message. | |
28 void HandleRequestPolicyData(const ListValue* args); | |
29 | |
30 scoped_ptr<policy::PolicyStatus> policy_status_; | |
31 | |
32 DISALLOW_COPY_AND_ASSIGN(PolicyUIHandler); | |
33 }; | |
34 | |
35 // The Web UI handler for about:policy. | |
36 class PolicyUI : public ChromeWebUI { | |
37 public: | |
Mattias Nissler (ping if slow)
2011/08/12 09:42:05
indentation
simo
2011/08/16 17:36:34
Done.
| |
38 explicit PolicyUI(TabContents* contents); | |
39 virtual ~PolicyUI(); | |
40 | |
41 private: | |
42 DISALLOW_COPY_AND_ASSIGN(PolicyUI); | |
43 }; | |
44 | |
45 #endif // CHROME_BROWSER_UI_WEBUI_POLICY_UI_H_ | |
OLD | NEW |