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

Side by Side Diff: chrome/browser/ui/webui/policy_ui.h

Issue 7585036: First CL for the about:policy page. This only implements the policy section of the page. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698