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

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: tweaks and right diff 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"
gfeher 2011/01/11 15:43:58 I am not sure, but would it make sense to mark it
danno 2011/01/20 17:18:32 Done.
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 kPolicyProxyServerMode,
30 kPolicyProxyServer,
31 kPolicyProxyPacUrl,
32 kPolicyProxyBypassList,
33 kPolicyAlternateErrorPagesEnabled,
34 kPolicySearchSuggestEnabled,
35 kPolicyDnsPrefetchingEnabled,
36 kPolicySafeBrowsingEnabled,
37 kPolicyMetricsReportingEnabled,
38 kPolicyPasswordManagerEnabled,
39 kPolicyPasswordManagerAllowShowPasswords,
40 kPolicyAutoFillEnabled,
41 kPolicySyncDisabled,
42 kPolicyApplicationLocale,
43 kPolicyExtensionInstallAllowList,
44 kPolicyExtensionInstallDenyList,
45 kPolicyShowHomeButton,
46 kPolicyDisabledPlugins,
47 kPolicyPrintingEnabled,
48 kPolicyChromeFrameRendererSettings,
49 kPolicyRenderInChromeFrameList,
50 kPolicyRenderInHostList,
51 kPolicyJavascriptEnabled,
52 kPolicySavingBrowserHistoryDisabled,
53 kPolicyDeveloperToolsDisabled,
54 kPolicyBlockThirdPartyCookies,
55 kPolicyDefaultCookiesSetting,
56 kPolicyDefaultImagesSetting,
57 kPolicyDefaultJavaScriptSetting,
58 kPolicyDefaultPluginsSetting,
59 kPolicyDefaultPopupsSetting,
60 kPolicyDefaultNotificationSetting,
61 kPolicyDefaultGeolocationSetting,
62 kPolicyExtensionInstallForceList,
63 kPolicyChromeOsLockOnIdleSuspend,
64 kPolicyAuthSchemes,
65 kPolicyDisableAuthNegotiateCnameLookup,
66 kPolicyEnableAuthNegotiatePort,
67 kPolicyAuthServerWhitelist,
68 kPolicyAuthNegotiateDelegateWhitelist,
69 kPolicyGSSAPILibraryName,
70 kPolicyDisable3DAPIs
71 };
72
73
74 // Constants for the "Proxy Server Mode" defined in the policies. 16 // Constants for the "Proxy Server Mode" defined in the policies.
75 // Note that these diverge from internal presentation defined in 17 // Note that these diverge from internal presentation defined in
76 // ProxyPrefs::ProxyMode for legacy reasons. The following four 18 // ProxyPrefs::ProxyMode for legacy reasons. The following four
77 // PolicyProxyModeType types were not very precise and had overlapping use 19 // PolicyProxyModeType types were not very precise and had overlapping use
78 // cases. 20 // cases.
79 enum PolicyProxyModeType { 21 enum PolicyProxyModeType {
80 // Disable Proxy, connect directly. 22 // Disable Proxy, connect directly.
81 kPolicyNoProxyServerMode = 0, 23 kPolicyNoProxyServerMode = 0,
82 // Auto detect proxy or use specific PAC script if given. 24 // Auto detect proxy or use specific PAC script if given.
83 kPolicyAutoDetectProxyServerMode = 1, 25 kPolicyAutoDetectProxyServerMode = 1,
(...skipping 19 matching lines...) Expand all
103 protected: 45 protected:
104 ConfigurationPolicyStoreInterface() {} 46 ConfigurationPolicyStoreInterface() {}
105 47
106 private: 48 private:
107 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface); 49 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface);
108 }; 50 };
109 51
110 } // namespace policy 52 } // namespace policy
111 53
112 #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