OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_H_ | |
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_H_ | |
7 #pragma once | |
8 | |
9 #include "base/basictypes.h" | |
10 | |
11 class Value; | |
12 | |
13 namespace policy { | |
14 | |
15 // An abstract super class for policy stores that provides a method that can be | |
16 // called by a |ConfigurationPolicyProvider| to specify a policy. | |
17 class ConfigurationPolicyStore { | |
18 public: | |
19 ConfigurationPolicyStore() {} | |
20 virtual ~ConfigurationPolicyStore() {} | |
21 | |
22 enum PolicyType { | |
23 kPolicyHomePage, | |
24 kPolicyHomepageIsNewTabPage, | |
25 kPolicyRestoreOnStartup, | |
26 kPolicyURLsToRestoreOnStartup, | |
27 kPolicyDefaultSearchProviderEnabled, | |
28 kPolicyDefaultSearchProviderName, | |
29 kPolicyDefaultSearchProviderKeyword, | |
30 kPolicyDefaultSearchProviderSearchURL, | |
31 kPolicyDefaultSearchProviderSuggestURL, | |
32 kPolicyDefaultSearchProviderIconURL, | |
33 kPolicyDefaultSearchProviderEncodings, | |
34 kPolicyDisableSpdy, | |
35 kPolicyProxyServerMode, | |
36 kPolicyProxyServer, | |
37 kPolicyProxyPacUrl, | |
38 kPolicyProxyBypassList, | |
39 kPolicyAlternateErrorPagesEnabled, | |
40 kPolicySearchSuggestEnabled, | |
41 kPolicyDnsPrefetchingEnabled, | |
42 kPolicySafeBrowsingEnabled, | |
43 kPolicyMetricsReportingEnabled, | |
44 kPolicyPasswordManagerEnabled, | |
45 kPolicyPasswordManagerAllowShowPasswords, | |
46 kPolicyAutoFillEnabled, | |
47 kPolicySyncDisabled, | |
48 kPolicyApplicationLocale, | |
49 kPolicyExtensionInstallAllowList, | |
50 kPolicyExtensionInstallDenyList, | |
51 kPolicyExtensionInstallForceList, | |
52 kPolicyShowHomeButton, | |
53 kPolicyDisabledPlugins, | |
54 kPolicyPrintingEnabled, | |
55 kPolicyChromeFrameRendererSettings, | |
56 kPolicyRenderInChromeFrameList, | |
57 kPolicyRenderInHostList, | |
58 kPolicyJavascriptEnabled, | |
59 kPolicySavingBrowserHistoryDisabled, | |
60 kPolicyDeveloperToolsDisabled, | |
61 kPolicyChromeOsLockOnIdleSuspend, | |
62 kPolicyBlockThirdPartyCookies, | |
63 }; | |
64 | |
65 static const int kPolicyNoProxyServerMode = 0; | |
66 static const int kPolicyAutoDetectProxyMode = 1; | |
67 static const int kPolicyManuallyConfiguredProxyMode = 2; | |
68 static const int kPolicyUseSystemProxyMode = 3; | |
69 | |
70 // A |ConfigurationPolicyProvider| specifies the value of a policy setting | |
71 // through a call to |Apply|. | |
72 // The configuration policy pref store takes over the ownership of |value|. | |
73 virtual void Apply(PolicyType policy, Value* value) = 0; | |
74 | |
75 private: | |
76 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStore); | |
77 }; | |
78 | |
79 } // namespace policy | |
80 | |
81 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_H_ | |
OLD | NEW |