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

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: merge with ToT 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 // configuration_policy_type.h is generated. See policy_template.json for
11 // policy definitions.
12 #include "policy/configuration_policy_type.h"
10 13
11 class Value; 14 class Value;
12 15
13 namespace policy { 16 namespace policy {
14 17
15 enum ConfigurationPolicyType {
16 kPolicyHomePage,
17 kPolicyHomepageIsNewTabPage,
18 kPolicyRestoreOnStartup,
19 kPolicyURLsToRestoreOnStartup,
20 kPolicyDefaultSearchProviderEnabled,
21 kPolicyDefaultSearchProviderName,
22 kPolicyDefaultSearchProviderKeyword,
23 kPolicyDefaultSearchProviderSearchURL,
24 kPolicyDefaultSearchProviderSuggestURL,
25 kPolicyDefaultSearchProviderIconURL,
26 kPolicyDefaultSearchProviderInstantURL,
27 kPolicyDefaultSearchProviderEncodings,
28 kPolicyDisableSpdy,
29 kPolicyProxyMode,
30 kPolicyProxyServerMode,
31 kPolicyProxyServer,
32 kPolicyProxyPacUrl,
33 kPolicyProxyBypassList,
34 kPolicyAlternateErrorPagesEnabled,
35 kPolicySearchSuggestEnabled,
36 kPolicyDnsPrefetchingEnabled,
37 kPolicySafeBrowsingEnabled,
38 kPolicyMetricsReportingEnabled,
39 kPolicyPasswordManagerEnabled,
40 kPolicyPasswordManagerAllowShowPasswords,
41 kPolicyAutoFillEnabled,
42 kPolicySyncDisabled,
43 kPolicyApplicationLocale,
44 kPolicyExtensionInstallAllowList,
45 kPolicyExtensionInstallDenyList,
46 kPolicyShowHomeButton,
47 kPolicyDisabledPlugins,
48 kPolicyPrintingEnabled,
49 kPolicyChromeFrameRendererSettings,
50 kPolicyRenderInChromeFrameList,
51 kPolicyRenderInHostList,
52 kPolicyJavascriptEnabled,
53 kPolicySavingBrowserHistoryDisabled,
54 kPolicyDeveloperToolsDisabled,
55 kPolicyBlockThirdPartyCookies,
56 kPolicyDefaultCookiesSetting,
57 kPolicyDefaultImagesSetting,
58 kPolicyDefaultJavaScriptSetting,
59 kPolicyDefaultPluginsSetting,
60 kPolicyDefaultPopupsSetting,
61 kPolicyDefaultNotificationSetting,
62 kPolicyDefaultGeolocationSetting,
63 kPolicyExtensionInstallForceList,
64 kPolicyChromeOsLockOnIdleSuspend,
65 kPolicyAuthSchemes,
66 kPolicyDisableAuthNegotiateCnameLookup,
67 kPolicyEnableAuthNegotiatePort,
68 kPolicyAuthServerWhitelist,
69 kPolicyAuthNegotiateDelegateWhitelist,
70 kPolicyGSSAPILibraryName,
71 kPolicyDisable3DAPIs,
72 kPolicyPolicyRefreshRate,
73 };
74
75
76 // Constants for the "Proxy Server Mode" defined in the policies. 18 // Constants for the "Proxy Server Mode" defined in the policies.
77 // Note that these diverge from internal presentation defined in 19 // Note that these diverge from internal presentation defined in
78 // ProxyPrefs::ProxyMode for legacy reasons. The following four 20 // ProxyPrefs::ProxyMode for legacy reasons. The following four
79 // PolicyProxyModeType types were not very precise and had overlapping use 21 // PolicyProxyModeType types were not very precise and had overlapping use
80 // cases. 22 // cases.
81 enum PolicyProxyModeType { 23 enum PolicyProxyModeType {
82 // Disable Proxy, connect directly. 24 // Disable Proxy, connect directly.
83 kPolicyNoProxyServerMode = 0, 25 kPolicyNoProxyServerMode = 0,
84 // Auto detect proxy or use specific PAC script if given. 26 // Auto detect proxy or use specific PAC script if given.
85 kPolicyAutoDetectProxyServerMode = 1, 27 kPolicyAutoDetectProxyServerMode = 1,
(...skipping 19 matching lines...) Expand all
105 protected: 47 protected:
106 ConfigurationPolicyStoreInterface() {} 48 ConfigurationPolicyStoreInterface() {}
107 49
108 private: 50 private:
109 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface); 51 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyStoreInterface);
110 }; 52 };
111 53
112 } // namespace policy 54 } // namespace policy
113 55
114 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_ 56 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_STORE_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698