Chromium Code Reviews| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 74 // Creates a ConfigurationPolicyPrefStore that reads recommended cloud policy. | 74 // Creates a ConfigurationPolicyPrefStore that reads recommended cloud policy. |
| 75 static ConfigurationPolicyPrefStore* CreateRecommendedCloudPolicyPrefStore(); | 75 static ConfigurationPolicyPrefStore* CreateRecommendedCloudPolicyPrefStore(); |
| 76 | 76 |
| 77 // Returns the default policy definition list for Chrome. | 77 // Returns the default policy definition list for Chrome. |
| 78 static const ConfigurationPolicyProvider::PolicyDefinitionList* | 78 static const ConfigurationPolicyProvider::PolicyDefinitionList* |
| 79 GetChromePolicyDefinitionList(); | 79 GetChromePolicyDefinitionList(); |
| 80 | 80 |
| 81 // Returns true if the given policy is a proxy policy. | 81 // Returns true if the given policy is a proxy policy. |
| 82 static bool IsProxyPolicy(ConfigurationPolicyType policy); | 82 static bool IsProxyPolicy(ConfigurationPolicyType policy); |
| 83 | 83 |
| 84 // Returns true if the given policy is an incognito mode policy. | |
| 85 static bool IsIncognitoModePolicy(ConfigurationPolicyType policy); | |
|
Mattias Nissler (ping if slow)
2011/09/20 13:12:25
I can't find why this is needed
simo
2011/09/22 11:43:26
Oh right, I forgot to remove it.
| |
| 86 | |
| 84 private: | 87 private: |
| 85 // Refreshes policy information, rereading policy from the provider and | 88 // Refreshes policy information, rereading policy from the provider and |
| 86 // sending out change notifications as appropriate. | 89 // sending out change notifications as appropriate. |
| 87 void Refresh(); | 90 void Refresh(); |
| 88 | 91 |
| 89 static const ConfigurationPolicyProvider::PolicyDefinitionList | 92 static const ConfigurationPolicyProvider::PolicyDefinitionList |
| 90 kPolicyDefinitionList; | 93 kPolicyDefinitionList; |
| 91 | 94 |
| 92 // The policy provider from which policy settings are read. | 95 // The policy provider from which policy settings are read. |
| 93 ConfigurationPolicyProvider* provider_; | 96 ConfigurationPolicyProvider* provider_; |
| 94 | 97 |
| 95 // Initialization status as reported by the policy provider the last time we | 98 // Initialization status as reported by the policy provider the last time we |
| 96 // queried it. | 99 // queried it. |
| 97 bool initialization_complete_; | 100 bool initialization_complete_; |
| 98 | 101 |
| 99 // Current policy preferences. | 102 // Current policy preferences. |
| 100 scoped_ptr<ConfigurationPolicyPrefKeeper> policy_keeper_; | 103 scoped_ptr<ConfigurationPolicyPrefKeeper> policy_keeper_; |
| 101 | 104 |
| 102 ObserverList<PrefStore::Observer, true> observers_; | 105 ObserverList<PrefStore::Observer, true> observers_; |
| 103 | 106 |
| 104 ConfigurationPolicyObserverRegistrar registrar_; | 107 ConfigurationPolicyObserverRegistrar registrar_; |
| 105 | 108 |
| 106 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); | 109 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStore); |
| 107 }; | 110 }; |
| 108 | 111 |
| 109 } // namespace policy | 112 } // namespace policy |
| 110 | 113 |
| 111 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ | 114 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_H_ |
| OLD | NEW |