Chromium Code Reviews| 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_ | |
|
Mattias Nissler (ping if slow)
2011/08/09 13:20:40
excess space
simo
2011/08/10 14:28:19
Done.
| |
| 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 | |
|
Mattias Nissler (ping if slow)
2011/08/09 13:20:40
onlye one newline.
simo
2011/08/10 14:28:19
Done.
| |
| 15 | |
| 16 // The base class handler of Javascript messages of the about:policy page | |
|
Mattias Nissler (ping if slow)
2011/08/09 13:20:40
Missing period.
simo
2011/08/10 14:28:19
Done.
| |
| 17 class PolicyUIHandler : public WebUIMessageHandler, | |
| 18 public NotificationObserver { | |
| 19 | |
|
Mattias Nissler (ping if slow)
2011/08/09 13:20:40
no newline here
simo
2011/08/10 14:28:19
Done.
| |
| 20 public: | |
|
Mattias Nissler (ping if slow)
2011/08/09 13:20:40
indentation
simo
2011/08/10 14:28:19
Done.
| |
| 21 PolicyUIHandler(); | |
| 22 virtual ~PolicyUIHandler(); | |
| 23 | |
| 24 // WebUIMessageHandler implementation. | |
| 25 virtual WebUIMessageHandler* Attach(WebUI* web_ui); | |
| 26 virtual void RegisterMessages(); | |
| 27 | |
| 28 // Callback for the "requestPolicyData" message. | |
|
Mattias Nissler (ping if slow)
2011/08/09 13:20:40
You should make this private, unless you have a go
simo
2011/08/10 14:28:19
Done.
| |
| 29 void HandleRequestPolicyData(const ListValue* args); | |
| 30 | |
| 31 // NotificationObserver implementation. | |
| 32 virtual void Observe(int type, | |
| 33 const NotificationSource& source, | |
| 34 const NotificationDetails& details); | |
|
Mattias Nissler (ping if slow)
2011/08/09 13:20:40
Here, and on all other overriden functions: add an
simo
2011/08/10 14:28:19
Done.
| |
| 35 private: | |
| 36 scoped_ptr<policy::PolicyStatus> policy_status_; | |
| 37 DISALLOW_COPY_AND_ASSIGN(PolicyUIHandler); | |
| 38 }; | |
| 39 | |
|
Mattias Nissler (ping if slow)
2011/08/09 13:20:40
Missing class description
simo
2011/08/10 14:28:19
Done.
| |
| 40 class PolicyUI : public ChromeWebUI { | |
| 41 public: | |
|
Mattias Nissler (ping if slow)
2011/08/09 13:20:40
indentation
simo
2011/08/10 14:28:19
Done.
| |
| 42 explicit PolicyUI(TabContents* contents); | |
| 43 virtual ~PolicyUI(); | |
| 44 | |
| 45 private: | |
| 46 DISALLOW_COPY_AND_ASSIGN(PolicyUI); | |
| 47 }; | |
| 48 | |
| 49 #endif // CHROME_BROWSER_UI_WEBUI_POLICY_UI_H_ | |
| OLD | NEW |