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

Side by Side Diff: chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h

Issue 18153007: Add policies to control power management on the Chrome OS login screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct example in policy_templates.json. Created 7 years, 5 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_
7 7
8 #include "chrome/browser/policy/configuration_policy_handler.h" 8 #include "chrome/browser/policy/configuration_policy_handler.h"
9 #include "chromeos/network/network_ui_data.h" 9 #include "chromeos/network/network_ui_data.h"
10 #include "chromeos/network/onc/onc_constants.h" 10 #include "chromeos/network/onc/onc_constants.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual ~ScreenMagnifierPolicyHandler(); 71 virtual ~ScreenMagnifierPolicyHandler();
72 72
73 // IntRangePolicyHandlerBase: 73 // IntRangePolicyHandlerBase:
74 virtual void ApplyPolicySettings(const PolicyMap& policies, 74 virtual void ApplyPolicySettings(const PolicyMap& policies,
75 PrefValueMap* prefs) OVERRIDE; 75 PrefValueMap* prefs) OVERRIDE;
76 76
77 private: 77 private:
78 DISALLOW_COPY_AND_ASSIGN(ScreenMagnifierPolicyHandler); 78 DISALLOW_COPY_AND_ASSIGN(ScreenMagnifierPolicyHandler);
79 }; 79 };
80 80
81 // ConfigurationPolicyHandler for login screen power management settings. This
82 // does not actually set any prefs, it just checks whether the settings are
83 // valid and generates errors if appropriate.
84 class LoginScreenPowerManagementPolicyHandler
85 : public TypeCheckingPolicyHandler {
86 public:
87 LoginScreenPowerManagementPolicyHandler();
88 virtual ~LoginScreenPowerManagementPolicyHandler();
89
90 // TypeCheckingPolicyHandler:
91 virtual bool CheckPolicySettings(const PolicyMap& policies,
92 PolicyErrorMap* errors) OVERRIDE;
93 virtual void ApplyPolicySettings(const PolicyMap& policies,
94 PrefValueMap* prefs) OVERRIDE;
95
96 private:
97 DISALLOW_COPY_AND_ASSIGN(LoginScreenPowerManagementPolicyHandler);
98 };
99
81 } // namespace policy 100 } // namespace policy
82 101
83 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_ H_ 102 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698