| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PREF_STORE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ |
| 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ | 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 const Value** result) const; | 42 const Value** result) const; |
| 43 | 43 |
| 44 // ConfigurationPolicyProvider::Observer methods: | 44 // ConfigurationPolicyProvider::Observer methods: |
| 45 virtual void OnUpdatePolicy(); | 45 virtual void OnUpdatePolicy(); |
| 46 virtual void OnProviderGoingAway(); | 46 virtual void OnProviderGoingAway(); |
| 47 | 47 |
| 48 // Creates a ConfigurationPolicyPrefStore that reads managed platform policy. | 48 // Creates a ConfigurationPolicyPrefStore that reads managed platform policy. |
| 49 static ConfigurationPolicyPrefStore* CreateManagedPlatformPolicyPrefStore(); | 49 static ConfigurationPolicyPrefStore* CreateManagedPlatformPolicyPrefStore(); |
| 50 | 50 |
| 51 // Creates a ConfigurationPolicyPrefStore that reads managed cloud policy. | 51 // Creates a ConfigurationPolicyPrefStore that reads managed cloud policy. |
| 52 static ConfigurationPolicyPrefStore* CreateManagedCloudPolicyPrefStore( | 52 static ConfigurationPolicyPrefStore* CreateManagedCloudPolicyPrefStore(); |
| 53 Profile* profile); | |
| 54 | 53 |
| 55 // Creates a ConfigurationPolicyPrefStore that reads recommended platform | 54 // Creates a ConfigurationPolicyPrefStore that reads recommended platform |
| 56 // policy. | 55 // policy. |
| 57 static ConfigurationPolicyPrefStore* | 56 static ConfigurationPolicyPrefStore* |
| 58 CreateRecommendedPlatformPolicyPrefStore(); | 57 CreateRecommendedPlatformPolicyPrefStore(); |
| 59 | 58 |
| 60 // Creates a ConfigurationPolicyPrefStore that reads recommended cloud policy. | 59 // Creates a ConfigurationPolicyPrefStore that reads recommended cloud policy. |
| 61 static ConfigurationPolicyPrefStore* CreateRecommendedCloudPolicyPrefStore( | 60 static ConfigurationPolicyPrefStore* CreateRecommendedCloudPolicyPrefStore(); |
| 62 Profile* profile); | |
| 63 | 61 |
| 64 // Returns the default policy definition list for Chrome. | 62 // Returns the default policy definition list for Chrome. |
| 65 static const ConfigurationPolicyProvider::PolicyDefinitionList* | 63 static const ConfigurationPolicyProvider::PolicyDefinitionList* |
| 66 GetChromePolicyDefinitionList(); | 64 GetChromePolicyDefinitionList(); |
| 67 | 65 |
| 68 private: | 66 private: |
| 69 // Refreshes policy information, rereading policy from the provider and | 67 // Refreshes policy information, rereading policy from the provider and |
| 70 // sending out change notifications as appropriate. | 68 // sending out change notifications as appropriate. |
| 71 void Refresh(); | 69 void Refresh(); |
| 72 | 70 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 86 ObserverList<PrefStore::Observer, true> observers_; | 84 ObserverList<PrefStore::Observer, true> observers_; |
| 87 | 85 |
| 88 ConfigurationPolicyObserverRegistrar registrar_; | 86 ConfigurationPolicyObserverRegistrar registrar_; |
| 89 | 87 |
| 90 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); | 88 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); |
| 91 }; | 89 }; |
| 92 | 90 |
| 93 } // namespace policy | 91 } // namespace policy |
| 94 | 92 |
| 95 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ | 93 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ |
| OLD | NEW |