| 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 "components/policy/core/common/cloud/component_cloud_policy_service.h" | 5 #include "components/policy/core/common/cloud/component_cloud_policy_service.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/containers/scoped_ptr_hash_map.h" | 14 #include "base/containers/scoped_ptr_hash_map.h" |
| 15 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
| 19 #include "base/sequenced_task_runner.h" | 19 #include "base/sequenced_task_runner.h" |
| 20 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
| 21 #include "base/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
| 22 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 22 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 23 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" | 23 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" |
| 24 #include "components/policy/core/common/cloud/component_cloud_policy_store.h" | 24 #include "components/policy/core/common/cloud/component_cloud_policy_store.h" |
| 25 #include "components/policy/core/common/cloud/component_cloud_policy_updater.h" | 25 #include "components/policy/core/common/cloud/component_cloud_policy_updater.h" |
| 26 #include "components/policy/core/common/cloud/external_policy_data_fetcher.h" | 26 #include "components/policy/core/common/cloud/external_policy_data_fetcher.h" |
| 27 #include "components/policy/core/common/cloud/resource_cache.h" | 27 #include "components/policy/core/common/cloud/resource_cache.h" |
| 28 #include "components/policy/core/common/schema.h" | 28 #include "components/policy/core/common/schema.h" |
| 29 #include "components/policy/core/common/schema_map.h" | 29 #include "components/policy/core/common/schema_map.h" |
| 30 #include "net/url_request/url_request_context_getter.h" | 30 #include "net/url_request/url_request_context_getter.h" |
| 31 #include "policy/proto/device_management_backend.pb.h" | 31 #include "policy/proto/device_management_backend.pb.h" |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 530 |
| 531 // Make a copy in |policy_| and filter it; this is what's passed to the | 531 // Make a copy in |policy_| and filter it; this is what's passed to the |
| 532 // outside world. | 532 // outside world. |
| 533 policy_.CopyFrom(*unfiltered_policy_); | 533 policy_.CopyFrom(*unfiltered_policy_); |
| 534 current_schema_map_->FilterBundle(&policy_); | 534 current_schema_map_->FilterBundle(&policy_); |
| 535 | 535 |
| 536 delegate_->OnComponentCloudPolicyUpdated(); | 536 delegate_->OnComponentCloudPolicyUpdated(); |
| 537 } | 537 } |
| 538 | 538 |
| 539 } // namespace policy | 539 } // namespace policy |
| OLD | NEW |