| OLD | NEW |
| 1 // Copyright (c) 2011 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_MAC_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_ |
| 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_ | 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/policy/file_based_policy_provider.h" | 10 #include "chrome/browser/policy/file_based_policy_provider.h" |
| 11 | 11 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 scoped_ptr<MacPreferences> preferences_; | 38 scoped_ptr<MacPreferences> preferences_; |
| 39 | 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(MacPreferencesPolicyProviderDelegate); | 40 DISALLOW_COPY_AND_ASSIGN(MacPreferencesPolicyProviderDelegate); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 // An implementation of |ConfigurationPolicyProvider| using the mechanism | 43 // An implementation of |ConfigurationPolicyProvider| using the mechanism |
| 44 // provided by Mac OS X's managed preferences. | 44 // provided by Mac OS X's managed preferences. |
| 45 class ConfigurationPolicyProviderMac : public FileBasedPolicyProvider { | 45 class ConfigurationPolicyProviderMac : public FileBasedPolicyProvider { |
| 46 public: | 46 public: |
| 47 explicit ConfigurationPolicyProviderMac( | 47 ConfigurationPolicyProviderMac(const PolicyDefinitionList* policy_list, |
| 48 const PolicyDefinitionList* policy_list); | 48 PolicyLevel level); |
| 49 // For testing; takes ownership of |preferences|. | 49 // For testing; takes ownership of |preferences|. |
| 50 ConfigurationPolicyProviderMac(const PolicyDefinitionList* policy_list, | 50 ConfigurationPolicyProviderMac(const PolicyDefinitionList* policy_list, |
| 51 PolicyLevel level, |
| 51 MacPreferences* preferences); | 52 MacPreferences* preferences); |
| 52 | 53 |
| 53 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderMac); | 54 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderMac); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace policy | 57 } // namespace policy |
| 57 | 58 |
| 58 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_ | 59 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_MAC_H_ |
| OLD | NEW |