| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CONFIGURATION_POLICY_STORE_H_ | 5 #ifndef CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_ |
| 6 #define CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_ | 6 #define CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_ |
| 7 | 7 |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 | 9 |
| 10 // An abstract super class for policy stores that provides a method that can be | 10 // An abstract super class for policy stores that provides a method that can be |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 kPolicyProxyServer, | 21 kPolicyProxyServer, |
| 22 kPolicyProxyPacUrl, | 22 kPolicyProxyPacUrl, |
| 23 kPolicyProxyBypassList, | 23 kPolicyProxyBypassList, |
| 24 kPolicyAlternateErrorPagesEnabled, | 24 kPolicyAlternateErrorPagesEnabled, |
| 25 kPolicySearchSuggestEnabled, | 25 kPolicySearchSuggestEnabled, |
| 26 kPolicyDnsPrefetchingEnabled, | 26 kPolicyDnsPrefetchingEnabled, |
| 27 kPolicySafeBrowsingEnabled, | 27 kPolicySafeBrowsingEnabled, |
| 28 kPolicyMetricsReportingEnabled, | 28 kPolicyMetricsReportingEnabled, |
| 29 kPolicyPasswordManagerEnabled, | 29 kPolicyPasswordManagerEnabled, |
| 30 kPolicySyncDisabled, | 30 kPolicySyncDisabled, |
| 31 kPolicyApplicationLocale, |
| 31 | 32 |
| 32 // A policy for allowing administrators to forcibly disable | 33 // A policy for allowing administrators to forcibly disable |
| 33 // specific plugins. This policy is a comma-separated list of | 34 // specific plugins. This policy is a comma-separated list of |
| 34 // plugin names. Plugin names must not include the backslash | 35 // plugin names. Plugin names must not include the backslash |
| 35 // character. | 36 // character. |
| 36 kPolicyDisabledPlugins | 37 kPolicyDisabledPlugins |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 static const int kPolicyNoProxyServerMode = 0; | 40 static const int kPolicyNoProxyServerMode = 0; |
| 40 static const int kPolicyAutoDetectProxyMode = 1; | 41 static const int kPolicyAutoDetectProxyMode = 1; |
| 41 static const int kPolicyManuallyConfiguredProxyMode = 2; | 42 static const int kPolicyManuallyConfiguredProxyMode = 2; |
| 42 static const int kPolicyUseSystemProxyMode = 3; | 43 static const int kPolicyUseSystemProxyMode = 3; |
| 43 | 44 |
| 44 // A |ConfigurationPolicyProvider| specifes the value of a policy setting | 45 // A |ConfigurationPolicyProvider| specifes the value of a policy setting |
| 45 // through a call to |Apply|. | 46 // through a call to |Apply|. |
| 46 // The configuration policy pref store takes over the ownership of |value|. | 47 // The configuration policy pref store takes over the ownership of |value|. |
| 47 virtual void Apply(PolicyType policy, Value* value) = 0; | 48 virtual void Apply(PolicyType policy, Value* value) = 0; |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStore); | 51 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStore); |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 #endif // CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_ | 54 #endif // CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_ |
| OLD | NEW |