Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: chrome/browser/policy/configuration_policy_store_interface.h

Issue 6002015: Policy: generate boilerplate policy type and constant code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/policy/configuration_policy_type.h"
10 11
11 class Value; 12 class Value;
12 13
13 namespace policy { 14 namespace policy {
14 15
15 enum ConfigurationPolicyType {
16 kPolicyHomePage,
17 kPolicyHomepageIsNewTabPage,
18 kPolicyRestoreOnStartup,
19 kPolicyURLsToRestoreOnStartup,
20 kPolicyDefaultSearchProviderEnabled,
21 kPolicyDefaultSearchProviderName,
22 kPolicyDefaultSearchProviderKeyword,
23 kPolicyDefaultSearchProviderSearchURL,
24 kPolicyDefaultSearchProviderSuggestURL,
25 kPolicyDefaultSearchProviderIconURL,
26 kPolicyDefaultSearchProviderEncodings,
27 kPolicyDisableSpdy,
28 kPolicyProxyMode,
29 kPolicyProxyServer,
30 kPolicyProxyPacUrl,
31 kPolicyProxyBypassList,
32 kPolicyAlternateErrorPagesEnabled,
33 kPolicySearchSuggestEnabled,
34 kPolicyDnsPrefetchingEnabled,
35 kPolicySafeBrowsingEnabled,
36 kPolicyMetricsReportingEnabled,
37 kPolicyPasswordManagerEnabled,
38 kPolicyPasswordManagerAllowShowPasswords,
39 kPolicyAutoFillEnabled,
40 kPolicySyncDisabled,
41 kPolicyApplicationLocale,
42 kPolicyExtensionInstallAllowList,
43 kPolicyExtensionInstallDenyList,
44 kPolicyShowHomeButton,
45 kPolicyDisabledPlugins,
46 kPolicyPrintingEnabled,
47 kPolicyChromeFrameRendererSettings,
48 kPolicyRenderInChromeFrameList,
49 kPolicyRenderInHostList,
50 kPolicyJavascriptEnabled,
51 kPolicySavingBrowserHistoryDisabled,
52 kPolicyDeveloperToolsDisabled,
53 kPolicyBlockThirdPartyCookies,
54 kPolicyDefaultCookiesSetting,
55 kPolicyDefaultImagesSetting,
56 kPolicyDefaultJavaScriptSetting,
57 kPolicyDefaultPluginsSetting,
58 kPolicyDefaultPopupsSetting,
59 kPolicyDefaultNotificationSetting,
60 kPolicyDefaultGeolocationSetting,
61 kPolicyExtensionInstallForceList,
62 kPolicyChromeOsLockOnIdleSuspend,
63 kPolicyAuthSchemes,
64 kPolicyDisableAuthNegotiateCnameLookup,
65 kPolicyEnableAuthNegotiatePort,
66 kPolicyAuthServerWhitelist,
67 kPolicyAuthNegotiateDelegateWhitelist,
68 kPolicyGSSAPILibraryName,
69 kPolicyDisable3DAPIs
70 };
71
72
73 // Constants for the "Proxy Server Mode" defined in the policies. 16 // Constants for the "Proxy Server Mode" defined in the policies.
74 // Note that these diverge from internal presentation defined in 17 // Note that these diverge from internal presentation defined in
75 // ProxyPrefs::ProxyMode for legacy reasons. The following four 18 // ProxyPrefs::ProxyMode for legacy reasons. The following four
76 // PolicyProxyModeType types were not very precise and had overlapping use 19 // PolicyProxyModeType types were not very precise and had overlapping use
77 // cases. 20 // cases.
78 enum PolicyProxyModeType { 21 enum PolicyProxyModeType {
79 // Disable Proxy, connect directly. 22 // Disable Proxy, connect directly.
80 kPolicyNoProxyServerMode = 0, 23 kPolicyNoProxyServerMode = 0,
81 // Auto detect proxy or use specific PAC script if given. 24 // Auto detect proxy or use specific PAC script if given.
82 kPolicyAutoDetectProxyMode = 1, 25 kPolicyAutoDetectProxyMode = 1,
(...skipping 19 matching lines...) Expand all
102 protected: 45 protected:
103 ConfigurationPolicyStoreInterface() {} 46 ConfigurationPolicyStoreInterface() {}
104 47
105 private: 48 private:
106 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface); 49 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface);
107 }; 50 };
108 51
109 } // namespace policy 52 } // namespace policy
110 53
111 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ 54 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698