| 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_POLICY_CONFIGURATION_POLICY_STORE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_H_ |
| 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_H_ | 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 kPolicyProxyServerMode, | 23 kPolicyProxyServerMode, |
| 24 kPolicyProxyServer, | 24 kPolicyProxyServer, |
| 25 kPolicyProxyPacUrl, | 25 kPolicyProxyPacUrl, |
| 26 kPolicyProxyBypassList, | 26 kPolicyProxyBypassList, |
| 27 kPolicyAlternateErrorPagesEnabled, | 27 kPolicyAlternateErrorPagesEnabled, |
| 28 kPolicySearchSuggestEnabled, | 28 kPolicySearchSuggestEnabled, |
| 29 kPolicyDnsPrefetchingEnabled, | 29 kPolicyDnsPrefetchingEnabled, |
| 30 kPolicySafeBrowsingEnabled, | 30 kPolicySafeBrowsingEnabled, |
| 31 kPolicyMetricsReportingEnabled, | 31 kPolicyMetricsReportingEnabled, |
| 32 kPolicyPasswordManagerEnabled, | 32 kPolicyPasswordManagerEnabled, |
| 33 kPolicyAutoFillEnabled, |
| 33 kPolicySyncDisabled, | 34 kPolicySyncDisabled, |
| 34 kPolicyApplicationLocale, | 35 kPolicyApplicationLocale, |
| 35 kPolicyExtensionInstallAllowList, | 36 kPolicyExtensionInstallAllowList, |
| 36 kPolicyExtensionInstallDenyList, | 37 kPolicyExtensionInstallDenyList, |
| 37 kPolicyShowHomeButton, | 38 kPolicyShowHomeButton, |
| 38 | 39 |
| 39 // A policy for allowing administrators to forcibly disable | 40 // A policy for allowing administrators to forcibly disable |
| 40 // specific plugins. This policy is a comma-separated list of | 41 // specific plugins. This policy is a comma-separated list of |
| 41 // plugin names. Plugin names must not include the backslash | 42 // plugin names. Plugin names must not include the backslash |
| 42 // character. | 43 // character. |
| 43 kPolicyDisabledPlugins | 44 kPolicyDisabledPlugins |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 static const int kPolicyNoProxyServerMode = 0; | 47 static const int kPolicyNoProxyServerMode = 0; |
| 47 static const int kPolicyAutoDetectProxyMode = 1; | 48 static const int kPolicyAutoDetectProxyMode = 1; |
| 48 static const int kPolicyManuallyConfiguredProxyMode = 2; | 49 static const int kPolicyManuallyConfiguredProxyMode = 2; |
| 49 static const int kPolicyUseSystemProxyMode = 3; | 50 static const int kPolicyUseSystemProxyMode = 3; |
| 50 | 51 |
| 51 // A |ConfigurationPolicyProvider| specifies the value of a policy setting | 52 // A |ConfigurationPolicyProvider| specifies the value of a policy setting |
| 52 // through a call to |Apply|. | 53 // through a call to |Apply|. |
| 53 // The configuration policy pref store takes over the ownership of |value|. | 54 // The configuration policy pref store takes over the ownership of |value|. |
| 54 virtual void Apply(PolicyType policy, Value* value) = 0; | 55 virtual void Apply(PolicyType policy, Value* value) = 0; |
| 55 | 56 |
| 56 private: | 57 private: |
| 57 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStore); | 58 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStore); |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_H_ | 61 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_H_ |
| OLD | NEW |