OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 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_HANDLER_LIST_H_ | |
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_LIST_H_ | |
7 #pragma once | |
8 | |
9 #include <vector> | |
10 | |
11 #include "base/values.h" | |
12 #include "policy/configuration_policy_type.h" | |
13 | |
14 namespace policy { | |
15 | |
16 class ConfigurationPolicyHandlerInterface; | |
17 | |
18 typedef std::vector<ConfigurationPolicyHandlerInterface*> HandlerList; | |
19 | |
20 // Fills the passed in |list| with all available handlers derived from | |
21 // ConfigurationPolicyHandlerInterface. | |
22 void MakeConfigurationPolicyHandlers(HandlerList* handlers); | |
23 | |
24 // Lists policies that map to a single preference. These are handled by | |
25 // SimplePolicyHandler. Each one of these policies has an entry in | |
26 // kSimplePolicyMap with the following type. | |
27 struct PolicyToPreferenceMapEntry { | |
28 base::Value::Type value_type; | |
29 ConfigurationPolicyType policy_type; | |
30 const char* preference_path; // A DictionaryValue path, not a file path. | |
31 }; | |
32 | |
33 extern const PolicyToPreferenceMapEntry kSimplePolicyMap[]; | |
Mattias Nissler (ping if slow)
2011/09/30 09:01:33
OK, but even if the struct is used elsewhere, this
simo
2011/09/30 13:00:41
Done.
| |
34 | |
35 } // namespace policy | |
36 | |
37 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_LIST_H_ | |
OLD | NEW |