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 // Deletes the ConfigurationPolicyHandler pointers in |handlers| and clears |
| 25 // |handlers|. |
| 26 void DeleteConfigurationPolicyHandlers(HandlerList* handlers); |
| 27 |
| 28 // Lists policies that map to a single preference. These are handled by |
| 29 // SimplePolicyHandler. Each one of these policies has an entry in |
| 30 // kSimplePolicyMap with the following type. |
| 31 struct PolicyToPreferenceMapEntry { |
| 32 base::Value::Type value_type; |
| 33 ConfigurationPolicyType policy_type; |
| 34 const char* preference_path; // A DictionaryValue path, not a file path. |
| 35 }; |
| 36 |
| 37 } // namespace policy |
| 38 |
| 39 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_LIST_H_ |
OLD | NEW |