Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / components / policy / core / common / cloud / cloud_policy_manager.h
index 0a04414..c029e67 100644 (file)
@@ -30,6 +30,8 @@ class URLRequestContextGetter;
 
 namespace policy {
 
+class PolicyMap;
+
 // CloudPolicyManager is the main switching central between cloud policy and the
 // upper layers of the policy stack. It wires up a CloudPolicyCore to the
 // ConfigurationPolicyProvider interface.
@@ -75,6 +77,11 @@ class POLICY_EXPORT CloudPolicyManager
   // ConfigurationPolicyStore::UpdatePolicy().
   void CheckAndPublishPolicy();
 
+  // Writes Chrome policy into |policy_map|. This is intended to be overridden
+  // by subclasses that want to post-process policy before publishing it. The
+  // default implementation just copies over |store()->policy_map()|.
+  virtual void GetChromePolicy(PolicyMap* policy_map);
+
   void CreateComponentCloudPolicyService(
       const base::FilePath& policy_cache_path,
       const scoped_refptr<net::URLRequestContextGetter>& request_context);