Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/extensions/policy_handlers.h" | 10 #include "chrome/browser/extensions/policy_handlers.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 // The kind of ONC source that this handler represents. ONCSource | 70 // The kind of ONC source that this handler represents. ONCSource |
| 71 // distinguishes between user and device policy. | 71 // distinguishes between user and device policy. |
| 72 const ::onc::ONCSource onc_source_; | 72 const ::onc::ONCSource onc_source_; |
| 73 | 73 |
| 74 // The name of the pref to apply the policy to. | 74 // The name of the pref to apply the policy to. |
| 75 const char* pref_path_; | 75 const char* pref_path_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationPolicyHandler); | 77 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationPolicyHandler); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 // Maps the PinnedLauncherApps policy to the corresponding pref. | |
| 81 class PinnedLauncherAppsPolicyHandler | |
|
Mattias Nissler (ping if slow)
2014/10/02 09:56:47
Please keep this, it's also used for regular sessi
rkc
2014/11/20 21:06:33
Done.
| |
| 82 : public extensions::ExtensionListPolicyHandler { | |
| 83 public: | |
| 84 PinnedLauncherAppsPolicyHandler(); | |
| 85 virtual ~PinnedLauncherAppsPolicyHandler(); | |
| 86 | |
| 87 // ExtensionListPolicyHandler methods: | |
| 88 virtual void ApplyPolicySettings(const PolicyMap& policies, | |
| 89 PrefValueMap* prefs) OVERRIDE; | |
| 90 | |
| 91 private: | |
| 92 DISALLOW_COPY_AND_ASSIGN(PinnedLauncherAppsPolicyHandler); | |
| 93 }; | |
| 94 | |
| 95 class ScreenMagnifierPolicyHandler : public IntRangePolicyHandlerBase { | 80 class ScreenMagnifierPolicyHandler : public IntRangePolicyHandlerBase { |
| 96 public: | 81 public: |
| 97 ScreenMagnifierPolicyHandler(); | 82 ScreenMagnifierPolicyHandler(); |
| 98 virtual ~ScreenMagnifierPolicyHandler(); | 83 virtual ~ScreenMagnifierPolicyHandler(); |
| 99 | 84 |
| 100 // IntRangePolicyHandlerBase: | 85 // IntRangePolicyHandlerBase: |
| 101 virtual void ApplyPolicySettings(const PolicyMap& policies, | 86 virtual void ApplyPolicySettings(const PolicyMap& policies, |
| 102 PrefValueMap* prefs) OVERRIDE; | 87 PrefValueMap* prefs) OVERRIDE; |
| 103 | 88 |
| 104 private: | 89 private: |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 virtual void ApplyPolicySettings(const PolicyMap& policies, | 146 virtual void ApplyPolicySettings(const PolicyMap& policies, |
| 162 PrefValueMap* prefs) OVERRIDE; | 147 PrefValueMap* prefs) OVERRIDE; |
| 163 | 148 |
| 164 private: | 149 private: |
| 165 DISALLOW_COPY_AND_ASSIGN(ScreenLockDelayPolicyHandler); | 150 DISALLOW_COPY_AND_ASSIGN(ScreenLockDelayPolicyHandler); |
| 166 }; | 151 }; |
| 167 | 152 |
| 168 } // namespace policy | 153 } // namespace policy |
| 169 | 154 |
| 170 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_ H_ | 155 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_ H_ |
| OLD | NEW |