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 29 matching lines...) Expand all Loading... |
40 virtual bool IsInitializationComplete() const; | 40 virtual bool IsInitializationComplete() const; |
41 virtual ReadResult GetValue(const std::string& key, Value** result) const; | 41 virtual ReadResult GetValue(const std::string& key, Value** result) const; |
42 | 42 |
43 // ConfigurationPolicyProvider::Observer methods: | 43 // ConfigurationPolicyProvider::Observer methods: |
44 virtual void OnUpdatePolicy(); | 44 virtual void OnUpdatePolicy(); |
45 virtual void OnProviderGoingAway(); | 45 virtual void OnProviderGoingAway(); |
46 | 46 |
47 // Creates a ConfigurationPolicyPrefStore that reads managed platform policy. | 47 // Creates a ConfigurationPolicyPrefStore that reads managed platform policy. |
48 static ConfigurationPolicyPrefStore* CreateManagedPlatformPolicyPrefStore(); | 48 static ConfigurationPolicyPrefStore* CreateManagedPlatformPolicyPrefStore(); |
49 | 49 |
50 // Creates a ConfigurationPolicyPrefStore that supplies policy from | 50 // Creates a ConfigurationPolicyPrefStore that reads managed cloud policy. |
51 // the device management server. | 51 static ConfigurationPolicyPrefStore* CreateManagedCloudPolicyPrefStore( |
52 static ConfigurationPolicyPrefStore* CreateDeviceManagementPolicyPrefStore( | |
53 Profile* profile); | 52 Profile* profile); |
54 | 53 |
55 // Creates a ConfigurationPolicyPrefStore that reads recommended policy. | 54 // Creates a ConfigurationPolicyPrefStore that reads recommended platform |
56 static ConfigurationPolicyPrefStore* CreateRecommendedPolicyPrefStore(); | 55 // policy. |
| 56 static ConfigurationPolicyPrefStore* |
| 57 CreateRecommendedPlatformPolicyPrefStore(); |
| 58 |
| 59 // Creates a ConfigurationPolicyPrefStore that reads recommended cloud policy. |
| 60 static ConfigurationPolicyPrefStore* CreateRecommendedCloudPolicyPrefStore( |
| 61 Profile* profile); |
57 | 62 |
58 // Returns the default policy definition list for Chrome. | 63 // Returns the default policy definition list for Chrome. |
59 static const ConfigurationPolicyProvider::PolicyDefinitionList* | 64 static const ConfigurationPolicyProvider::PolicyDefinitionList* |
60 GetChromePolicyDefinitionList(); | 65 GetChromePolicyDefinitionList(); |
61 | 66 |
62 private: | 67 private: |
63 // Refreshes policy information, rereading policy from the provider and | 68 // Refreshes policy information, rereading policy from the provider and |
64 // sending out change notifications as appropriate. | 69 // sending out change notifications as appropriate. |
65 void Refresh(); | 70 void Refresh(); |
66 | 71 |
(...skipping 13 matching lines...) Expand all Loading... |
80 ObserverList<PrefStore::Observer, true> observers_; | 85 ObserverList<PrefStore::Observer, true> observers_; |
81 | 86 |
82 ConfigurationPolicyObserverRegistrar registrar_; | 87 ConfigurationPolicyObserverRegistrar registrar_; |
83 | 88 |
84 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); | 89 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); |
85 }; | 90 }; |
86 | 91 |
87 } // namespace policy | 92 } // namespace policy |
88 | 93 |
89 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ | 94 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ |
OLD | NEW |