Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / components / policy / core / browser / configuration_policy_handler_list.h
index 5cbc55e..f686d68 100644 (file)
@@ -21,6 +21,7 @@ class ConfigurationPolicyHandler;
 class PolicyErrorMap;
 class PolicyMap;
 struct PolicyToPreferenceMapEntry;
+class Schema;
 
 // Converts policies to their corresponding preferences by applying a list of
 // ConfigurationPolicyHandler objects. This includes error checking and
@@ -51,6 +52,11 @@ class POLICY_EXPORT ConfigurationPolicyHandlerList {
   DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyHandlerList);
 };
 
+// Callback with signature of BuildHandlerList(), to be used in constructor of
+// BrowserPolicyConnector.
+typedef base::Callback<scoped_ptr<ConfigurationPolicyHandlerList>(
+    const Schema&)> HandlerListFactory;
+
 }  // namespace policy
 
 #endif  // COMPONENTS_POLICY_CORE_BROWSER_CONFIGURATION_POLICY_HANDLER_LIST_H_