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_POLICY_CONFIGURATION_POLICY_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ |
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ | 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 virtual ~SyncPolicyHandler(); | 214 virtual ~SyncPolicyHandler(); |
215 | 215 |
216 // ConfigurationPolicyHandler methods: | 216 // ConfigurationPolicyHandler methods: |
217 virtual void ApplyPolicySettings(const PolicyMap& policies, | 217 virtual void ApplyPolicySettings(const PolicyMap& policies, |
218 PrefValueMap* prefs) OVERRIDE; | 218 PrefValueMap* prefs) OVERRIDE; |
219 | 219 |
220 private: | 220 private: |
221 DISALLOW_COPY_AND_ASSIGN(SyncPolicyHandler); | 221 DISALLOW_COPY_AND_ASSIGN(SyncPolicyHandler); |
222 }; | 222 }; |
223 | 223 |
| 224 // ConfigurationPolicyHandler for the SigninAllowed policy. |
| 225 class SigninPolicyHandler: public TypeCheckingPolicyHandler { |
| 226 public: |
| 227 SigninPolicyHandler(); |
| 228 virtual ~SigninPolicyHandler(); |
| 229 |
| 230 // ConfigurationPolicyHandler methods: |
| 231 virtual void ApplyPolicySettings(const PolicyMap& policies, |
| 232 PrefValueMap* prefs) OVERRIDE; |
| 233 |
| 234 private: |
| 235 DISALLOW_COPY_AND_ASSIGN(SigninPolicyHandler); |
| 236 }; |
| 237 |
224 // ConfigurationPolicyHandler for the AutofillEnabled policy. | 238 // ConfigurationPolicyHandler for the AutofillEnabled policy. |
225 class AutofillPolicyHandler : public TypeCheckingPolicyHandler { | 239 class AutofillPolicyHandler : public TypeCheckingPolicyHandler { |
226 public: | 240 public: |
227 AutofillPolicyHandler(); | 241 AutofillPolicyHandler(); |
228 virtual ~AutofillPolicyHandler(); | 242 virtual ~AutofillPolicyHandler(); |
229 | 243 |
230 // ConfigurationPolicyHandler methods: | 244 // ConfigurationPolicyHandler methods: |
231 virtual void ApplyPolicySettings(const PolicyMap& policies, | 245 virtual void ApplyPolicySettings(const PolicyMap& policies, |
232 PrefValueMap* prefs) OVERRIDE; | 246 PrefValueMap* prefs) OVERRIDE; |
233 | 247 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 private: | 472 private: |
459 void ApplyPolicySettingsFromHomePage(const PolicyMap& policies, | 473 void ApplyPolicySettingsFromHomePage(const PolicyMap& policies, |
460 PrefValueMap* prefs); | 474 PrefValueMap* prefs); |
461 | 475 |
462 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler); | 476 DISALLOW_COPY_AND_ASSIGN(RestoreOnStartupPolicyHandler); |
463 }; | 477 }; |
464 | 478 |
465 } // namespace policy | 479 } // namespace policy |
466 | 480 |
467 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ | 481 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_H_ |
OLD | NEW |