Chromium Code Reviews| Index: chrome/browser/policy/configuration_policy_handler_list.h |
| diff --git a/chrome/browser/policy/configuration_policy_handler_list.h b/chrome/browser/policy/configuration_policy_handler_list.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..99c42bc2bf2c6de93d8287a1694a201bc07bdd5b |
| --- /dev/null |
| +++ b/chrome/browser/policy/configuration_policy_handler_list.h |
| @@ -0,0 +1,37 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_LIST_H_ |
| +#define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_LIST_H_ |
| +#pragma once |
| + |
| +#include <vector> |
| + |
| +#include "base/values.h" |
| +#include "policy/configuration_policy_type.h" |
| + |
| +namespace policy { |
| + |
| +class ConfigurationPolicyHandlerInterface; |
| + |
| +typedef std::vector<ConfigurationPolicyHandlerInterface*> HandlerList; |
| + |
| +// Returns a pointer to a |HandlerList| containing all available handlers |
| +// 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.
|
| +HandlerList* MakeConfigurationPolicyHandlers(); |
| + |
| +// Lists policies that map to a single preference. These are handled by |
| +// SimplePolicyHandler. Each one of these policies has an entry in |
| +// kSimplePolicyMap with the following type. |
| +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.
|
| + base::Value::Type value_type; |
| + ConfigurationPolicyType policy_type; |
| + const char* preference_path; // A DictionaryValue path, not a file path. |
| +}; |
| + |
| +extern const PolicyToPreferenceMapEntry kSimplePolicyMap[]; |
| + |
| +} // namespace policy |
| + |
| +#endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_LIST_H_ |