| 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_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 // Writes Chrome policy into |policy_map|. This is intended to be overridden | 82 // Writes Chrome policy into |policy_map|. This is intended to be overridden |
| 83 // by subclasses that want to post-process policy before publishing it. The | 83 // by subclasses that want to post-process policy before publishing it. The |
| 84 // default implementation just copies over |store()->policy_map()|. | 84 // default implementation just copies over |store()->policy_map()|. |
| 85 virtual void GetChromePolicy(PolicyMap* policy_map); | 85 virtual void GetChromePolicy(PolicyMap* policy_map); |
| 86 | 86 |
| 87 void CreateComponentCloudPolicyService( | 87 void CreateComponentCloudPolicyService( |
| 88 const std::string& policy_type, | 88 const std::string& policy_type, |
| 89 const base::FilePath& policy_cache_path, | 89 const base::FilePath& policy_cache_path, |
| 90 const scoped_refptr<net::URLRequestContextGetter>& request_context, | 90 const scoped_refptr<net::URLRequestContextGetter>& request_context, |
| 91 CloudPolicyClient* client); | 91 CloudPolicyClient* client, |
| 92 SchemaRegistry* schema_registry); |
| 92 | 93 |
| 93 void ClearAndDestroyComponentCloudPolicyService(); | 94 void ClearAndDestroyComponentCloudPolicyService(); |
| 94 | 95 |
| 95 // Convenience accessors to core() components. | 96 // Convenience accessors to core() components. |
| 96 CloudPolicyClient* client() { return core_.client(); } | 97 CloudPolicyClient* client() { return core_.client(); } |
| 97 const CloudPolicyClient* client() const { return core_.client(); } | 98 const CloudPolicyClient* client() const { return core_.client(); } |
| 98 CloudPolicyStore* store() { return core_.store(); } | 99 CloudPolicyStore* store() { return core_.store(); } |
| 99 const CloudPolicyStore* store() const { return core_.store(); } | 100 const CloudPolicyStore* store() const { return core_.store(); } |
| 100 CloudPolicyService* service() { return core_.service(); } | 101 CloudPolicyService* service() { return core_.service(); } |
| 101 const CloudPolicyService* service() const { return core_.service(); } | 102 const CloudPolicyService* service() const { return core_.service(); } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 116 | 117 |
| 117 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; | 118 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; |
| 118 scoped_refptr<base::SequencedTaskRunner> io_task_runner_; | 119 scoped_refptr<base::SequencedTaskRunner> io_task_runner_; |
| 119 | 120 |
| 120 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager); | 121 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager); |
| 121 }; | 122 }; |
| 122 | 123 |
| 123 } // namespace policy | 124 } // namespace policy |
| 124 | 125 |
| 125 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ | 126 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ |
| OLD | NEW |