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 // Returns a pointer to a |HandlerList| containing all available handlers | |
21 // derived from ConfigurationPolicyHandlerInterface. | |
Mattias Nissler (ping if slow)
2011/09/26 13:30:48
What we usually do in this case is passing in a ve
simo
2011/09/29 09:33:08
Done.
| |
22 HandlerList* MakeConfigurationPolicyHandlers(); | |
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 { | |
Mattias Nissler (ping if slow)
2011/09/26 13:30:48
Do we actually need to publish this type? Can we j
simo
2011/09/29 09:33:08
I'm currently using it for the DefaultSearchPolicy
Mattias Nissler (ping if slow)
2011/09/30 09:01:33
Done.
| |
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[]; | |
34 | |
35 } // namespace policy | |
36 | |
37 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_LIST_H_ | |
OLD | NEW |