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 #include "components/policy/core/common/cloud/cloud_policy_service.h" | 5 #include "components/policy/core/common/cloud/cloud_policy_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "policy/proto/device_management_backend.pb.h" | 11 #include "components/policy/proto/device_management_backend.pb.h" |
12 | 12 |
13 namespace em = enterprise_management; | 13 namespace em = enterprise_management; |
14 | 14 |
15 namespace policy { | 15 namespace policy { |
16 | 16 |
17 CloudPolicyService::CloudPolicyService(const std::string& policy_type, | 17 CloudPolicyService::CloudPolicyService(const std::string& policy_type, |
18 const std::string& settings_entity_id, | 18 const std::string& settings_entity_id, |
19 CloudPolicyClient* client, | 19 CloudPolicyClient* client, |
20 CloudPolicyStore* store) | 20 CloudPolicyStore* store) |
21 : policy_type_(policy_type), | 21 : policy_type_(policy_type), |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 void CloudPolicyService::AddObserver(Observer* observer) { | 186 void CloudPolicyService::AddObserver(Observer* observer) { |
187 observers_.AddObserver(observer); | 187 observers_.AddObserver(observer); |
188 } | 188 } |
189 | 189 |
190 void CloudPolicyService::RemoveObserver(Observer* observer) { | 190 void CloudPolicyService::RemoveObserver(Observer* observer) { |
191 observers_.RemoveObserver(observer); | 191 observers_.RemoveObserver(observer); |
192 } | 192 } |
193 | 193 |
194 } // namespace policy | 194 } // namespace policy |
OLD | NEW |