| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_HANDLER_LIST_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_HANDLER_LIST_H_ |
| 6 #define COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_HANDLER_LIST_H_ | 6 #define COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_HANDLER_LIST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "components/policy/core/common/policy_details.h" | 13 #include "components/policy/core/common/policy_details.h" |
| 14 #include "components/policy/core/common/policy_map.h" | 14 #include "components/policy/core/common/policy_map.h" |
| 15 #include "components/policy/policy_export.h" | 15 #include "components/policy/policy_export.h" |
| 16 | 16 |
| 17 class PrefValueMap; | 17 class PrefValueMap; |
| 18 | 18 |
| 19 namespace policy { | 19 namespace policy { |
| 20 | 20 |
| 21 class ConfigurationPolicyHandler; | 21 class ConfigurationPolicyHandler; |
| 22 class PolicyErrorMap; | 22 class PolicyErrorMap; |
| 23 struct PolicyHandlerParameters; | 23 struct PolicyHandlerParameters; |
| 24 struct PolicyToPreferenceMapEntry; | |
| 25 class Schema; | 24 class Schema; |
| 26 | 25 |
| 27 // Converts policies to their corresponding preferences by applying a list of | 26 // Converts policies to their corresponding preferences by applying a list of |
| 28 // ConfigurationPolicyHandler objects. This includes error checking and cleaning | 27 // ConfigurationPolicyHandler objects. This includes error checking and cleaning |
| 29 // up policy values for display. | 28 // up policy values for display. |
| 30 class POLICY_EXPORT ConfigurationPolicyHandlerList { | 29 class POLICY_EXPORT ConfigurationPolicyHandlerList { |
| 31 public: | 30 public: |
| 32 typedef base::Callback<void(PolicyHandlerParameters*)> | 31 typedef base::Callback<void(PolicyHandlerParameters*)> |
| 33 PopulatePolicyHandlerParametersCallback; | 32 PopulatePolicyHandlerParametersCallback; |
| 34 | 33 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 62 | 61 |
| 63 // Callback with signature of BuildHandlerList(), to be used in constructor of | 62 // Callback with signature of BuildHandlerList(), to be used in constructor of |
| 64 // BrowserPolicyConnector. | 63 // BrowserPolicyConnector. |
| 65 typedef base::Callback<std::unique_ptr<ConfigurationPolicyHandlerList>( | 64 typedef base::Callback<std::unique_ptr<ConfigurationPolicyHandlerList>( |
| 66 const Schema&)> | 65 const Schema&)> |
| 67 HandlerListFactory; | 66 HandlerListFactory; |
| 68 | 67 |
| 69 } // namespace policy | 68 } // namespace policy |
| 70 | 69 |
| 71 #endif // COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_HANDLER_LIST_H_ | 70 #endif // COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_HANDLER_LIST_H_ |
| OLD | NEW |