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_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ |
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ | 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 kPolicySavingBrowserHistoryDisabled, | 51 kPolicySavingBrowserHistoryDisabled, |
52 kPolicyDeveloperToolsDisabled, | 52 kPolicyDeveloperToolsDisabled, |
53 kPolicyBlockThirdPartyCookies, | 53 kPolicyBlockThirdPartyCookies, |
54 kPolicyExtensionInstallForceList, | 54 kPolicyExtensionInstallForceList, |
55 kPolicyChromeOsLockOnIdleSuspend, | 55 kPolicyChromeOsLockOnIdleSuspend, |
56 kPolicyAuthSchemes, | 56 kPolicyAuthSchemes, |
57 kPolicyDisableAuthNegotiateCnameLookup, | 57 kPolicyDisableAuthNegotiateCnameLookup, |
58 kPolicyEnableAuthNegotiatePort, | 58 kPolicyEnableAuthNegotiatePort, |
59 kPolicyAuthServerWhitelist, | 59 kPolicyAuthServerWhitelist, |
60 kPolicyAuthNegotiateDelegateWhitelist, | 60 kPolicyAuthNegotiateDelegateWhitelist, |
61 | 61 kPolicyGSSAPILibraryName, |
62 }; | 62 }; |
63 | 63 |
64 static const int kPolicyNoProxyServerMode = 0; | 64 static const int kPolicyNoProxyServerMode = 0; |
65 static const int kPolicyAutoDetectProxyMode = 1; | 65 static const int kPolicyAutoDetectProxyMode = 1; |
66 static const int kPolicyManuallyConfiguredProxyMode = 2; | 66 static const int kPolicyManuallyConfiguredProxyMode = 2; |
67 static const int kPolicyUseSystemProxyMode = 3; | 67 static const int kPolicyUseSystemProxyMode = 3; |
68 | 68 |
69 // An abstract super class for policy stores that provides a method that can be | 69 // An abstract super class for policy stores that provides a method that can be |
70 // called by a |ConfigurationPolicyProvider| to specify a policy. | 70 // called by a |ConfigurationPolicyProvider| to specify a policy. |
71 class ConfigurationPolicyStoreInterface { | 71 class ConfigurationPolicyStoreInterface { |
72 public: | 72 public: |
73 virtual ~ConfigurationPolicyStoreInterface() {} | 73 virtual ~ConfigurationPolicyStoreInterface() {} |
74 | 74 |
75 // A |ConfigurationPolicyProvider| specifies the value of a policy | 75 // A |ConfigurationPolicyProvider| specifies the value of a policy |
76 // setting through a call to |Apply|. The configuration policy pref | 76 // setting through a call to |Apply|. The configuration policy pref |
77 // store takes over the ownership of |value|. | 77 // store takes over the ownership of |value|. |
78 virtual void Apply(ConfigurationPolicyType policy, Value* value) = 0; | 78 virtual void Apply(ConfigurationPolicyType policy, Value* value) = 0; |
79 | 79 |
80 protected: | 80 protected: |
81 ConfigurationPolicyStoreInterface() {} | 81 ConfigurationPolicyStoreInterface() {} |
82 | 82 |
83 private: | 83 private: |
84 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface); | 84 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface); |
85 }; | 85 }; |
86 | 86 |
87 } // namespace policy | 87 } // namespace policy |
88 | 88 |
89 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ | 89 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ |
OLD | NEW |