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

Side by Side Diff: chrome/browser/group_policy_settings.h

Issue 450037: Adds basic group policy support. Resubmitting r33093 with a new unit test.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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
« no previous file with comments | « chrome/browser/group_policy.cc ('k') | chrome/browser/group_policy_settings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2009 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_GROUP_POLICY_SETTINGS_H_
6 #define CHROME_BROWSER_GROUP_POLICY_SETTINGS_H_
7
8 #include "chrome/browser/group_policy.h"
9
10 #define DECLARE_POLICY(name, type) extern const type gp##name
11 #define DECLARE_POLICY_DWORD(name) DECLARE_POLICY(name, DWORDSetting)
12 #define DECLARE_POLICY_BOOL(name) DECLARE_POLICY(name, BoolSetting)
13 #define DECLARE_POLICY_STRING(name) DECLARE_POLICY(name, StringSetting)
14 #define DECLARE_POLICY_STRINGLIST(name) DECLARE_POLICY(name, StringListSetting)
15
16 #define DEFINE_POLICY(name, type, key, value, storage, combine) \
17 const type gp##name(key, value, storage, combine)
18 #define DEFINE_POLICY_DWORD(name, key, value) \
19 DEFINE_POLICY(name, DWORDSetting, key, \
20 value, POLICYSTORAGE_SINGLEVALUE, POLICYCOMBINE_PREFERMACHINE)
21 #define DEFINE_POLICY_BOOL(name, key, value) \
22 DEFINE_POLICY(name, BoolSetting, key, value, \
23 POLICYSTORAGE_SINGLEVALUE, POLICYCOMBINE_LOGICALOR)
24 #define DEFINE_POLICY_STRING(name, key, value) \
25 DEFINE_POLICY(name, StringSetting, key, value, \
26 POLICYSTORAGE_SINGLEVALUE, POLICYCOMBINE_PREFERMACHINE)
27 #define DEFINE_POLICY_STRINGLIST(name, key) \
28 DEFINE_POLICY(name, StringListSetting, key, L"", \
29 POLICYSTORAGE_CONCATSUBKEYS, POLICYCOMBINE_CONCATENATE)
30
31 namespace group_policy {
32
33 typedef Setting<DWORD> DWORDSetting;
34 typedef Setting<bool> BoolSetting;
35 typedef Setting<std::wstring> StringSetting;
36 typedef Setting<ListValue> StringListSetting;
37
38 // Extern declarations of all policy settings. Policies should always
39 // be accessed via the GroupPolicySetting object rather than directly
40 // through the registry, to ensure the priorities and combination flags
41 // are respected.
42 // TODO(gwilson): The actual group policy settings need to be finalized.
43 // Change this testing set to the true supported set.
44 DECLARE_POLICY_STRING(Homepage);
45 DECLARE_POLICY_BOOL(HomepageIsNewTabPage);
46 DECLARE_POLICY_STRINGLIST(ChromeFrameDomainWhiteList);
47
48 } // namespace
49
50 #endif // CHROME_BROWSER_GROUP_POLICY_SETTINGS_H_
51
OLDNEW
« no previous file with comments | « chrome/browser/group_policy.cc ('k') | chrome/browser/group_policy_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698