| OLD | NEW |
| 1 // Copyright (c) 2010 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_PROVIDER_WIN_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_WIN_H_ |
| 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_WIN_H_ | 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "chrome/browser/policy/asynchronous_policy_provider.h" | 10 #include "chrome/browser/policy/asynchronous_policy_provider.h" |
| 11 | 11 |
| 12 namespace policy { | 12 namespace policy { |
| 13 | 13 |
| 14 // An implementation of |ConfigurationPolicyProvider| using the | 14 // An implementation of |ConfigurationPolicyProvider| using the |
| 15 // mechanism provided by Windows Groups Policy. Policy decisions are | 15 // mechanism provided by Windows Groups Policy. Policy decisions are |
| 16 // stored as values in a special section of the Windows Registry. | 16 // stored as values in a special section of the Windows Registry. |
| 17 // On a managed machine in a domain, this portion of the registry is | 17 // On a managed machine in a domain, this portion of the registry is |
| 18 // periodically updated by the Windows Group Policy machinery to contain | 18 // periodically updated by the Windows Group Policy machinery to contain |
| 19 // the latest version of the policy set by administrators. | 19 // the latest version of the policy set by administrators. |
| 20 class ConfigurationPolicyProviderWin : public AsynchronousPolicyProvider { | 20 class ConfigurationPolicyProviderWin : public AsynchronousPolicyProvider { |
| 21 public: | 21 public: |
| 22 ConfigurationPolicyProviderWin(const PolicyDefinitionList* policy_list, | 22 ConfigurationPolicyProviderWin(const PolicyDefinitionList* policy_list, |
| 23 const string16& registry_key); | 23 const string16& registry_key, |
| 24 PolicyLevel level); |
| 24 virtual ~ConfigurationPolicyProviderWin() {} | 25 virtual ~ConfigurationPolicyProviderWin() {} |
| 25 | 26 |
| 26 private: | 27 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderWin); | 28 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderWin); |
| 28 }; | 29 }; |
| 29 | 30 |
| 30 } // namespace policy | 31 } // namespace policy |
| 31 | 32 |
| 32 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_WIN_H_ | 33 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_WIN_H_ |
| OLD | NEW |