| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/policy/cloud/component_cloud_policy_service.h" | 5 #include "chrome/browser/policy/cloud/component_cloud_policy_service.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/message_loop/message_loop_proxy.h" | 13 #include "base/message_loop/message_loop_proxy.h" |
| 14 #include "base/sequenced_task_runner.h" | 14 #include "base/sequenced_task_runner.h" |
| 15 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 15 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
| 16 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" | 16 #include "chrome/browser/policy/cloud/cloud_policy_refresh_scheduler.h" |
| 17 #include "chrome/browser/policy/cloud/component_cloud_policy_store.h" | 17 #include "chrome/browser/policy/cloud/component_cloud_policy_store.h" |
| 18 #include "chrome/browser/policy/cloud/component_cloud_policy_updater.h" | 18 #include "chrome/browser/policy/cloud/component_cloud_policy_updater.h" |
| 19 #include "chrome/browser/policy/cloud/external_policy_data_fetcher.h" | 19 #include "chrome/browser/policy/cloud/external_policy_data_fetcher.h" |
| 20 #include "chrome/browser/policy/cloud/resource_cache.h" | 20 #include "chrome/browser/policy/cloud/resource_cache.h" |
| 21 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" | 21 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
| 22 #include "chrome/browser/policy/schema_map.h" | |
| 23 #include "components/policy/core/common/schema.h" | 22 #include "components/policy/core/common/schema.h" |
| 23 #include "components/policy/core/common/schema_map.h" |
| 24 #include "net/url_request/url_request_context_getter.h" | 24 #include "net/url_request/url_request_context_getter.h" |
| 25 | 25 |
| 26 namespace em = enterprise_management; | 26 namespace em = enterprise_management; |
| 27 | 27 |
| 28 namespace policy { | 28 namespace policy { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 bool NotInSchemaMap(const scoped_refptr<SchemaMap> schema_map, | 32 bool NotInSchemaMap(const scoped_refptr<SchemaMap> schema_map, |
| 33 PolicyDomain domain, | 33 PolicyDomain domain, |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 } | 487 } |
| 488 | 488 |
| 489 void ComponentCloudPolicyService::OnPolicyUpdated( | 489 void ComponentCloudPolicyService::OnPolicyUpdated( |
| 490 scoped_ptr<PolicyBundle> policy) { | 490 scoped_ptr<PolicyBundle> policy) { |
| 491 DCHECK(CalledOnValidThread()); | 491 DCHECK(CalledOnValidThread()); |
| 492 policy_.Swap(policy.get()); | 492 policy_.Swap(policy.get()); |
| 493 delegate_->OnComponentCloudPolicyUpdated(); | 493 delegate_->OnComponentCloudPolicyUpdated(); |
| 494 } | 494 } |
| 495 | 495 |
| 496 } // namespace policy | 496 } // namespace policy |
| OLD | NEW |