| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Most of this code is copied from: | 5 // Most of this code is copied from: |
| 6 // src/chrome/browser/policy/asynchronous_policy_loader.{h,cc} | 6 // src/chrome/browser/policy/asynchronous_policy_loader.{h,cc} |
| 7 | 7 |
| 8 #include "remoting/host/policy_watcher.h" | 8 #include "remoting/host/policy_watcher.h" |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/memory/ptr_util.h" | 16 #include "base/memory/ptr_util.h" |
| 17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "components/policy/core/common/async_policy_loader.h" | 20 #include "components/policy/core/common/async_policy_loader.h" |
| 21 #include "components/policy/core/common/async_policy_provider.h" | 21 #include "components/policy/core/common/async_policy_provider.h" |
| 22 #include "components/policy/core/common/policy_namespace.h" | 22 #include "components/policy/core/common/policy_namespace.h" |
| 23 #include "components/policy/core/common/policy_service_impl.h" | 23 #include "components/policy/core/common/policy_service_impl.h" |
| 24 #include "components/policy/core/common/schema.h" | 24 #include "components/policy/core/common/schema.h" |
| 25 #include "components/policy/core/common/schema_registry.h" | 25 #include "components/policy/core/common/schema_registry.h" |
| 26 #include "policy/policy_constants.h" | 26 #include "components/policy/policy_constants.h" |
| 27 #include "remoting/host/dns_blackhole_checker.h" | 27 #include "remoting/host/dns_blackhole_checker.h" |
| 28 #include "remoting/host/third_party_auth_config.h" | 28 #include "remoting/host/third_party_auth_config.h" |
| 29 #include "remoting/protocol/port_range.h" | 29 #include "remoting/protocol/port_range.h" |
| 30 | 30 |
| 31 #if !defined(NDEBUG) | 31 #if !defined(NDEBUG) |
| 32 #include "base/json/json_reader.h" | 32 #include "base/json/json_reader.h" |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
| 36 #include "components/policy/core/common/policy_loader_win.h" | 36 #include "components/policy/core/common/policy_loader_win.h" |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 CreateSchemaRegistry())); | 382 CreateSchemaRegistry())); |
| 383 #else | 383 #else |
| 384 #error OS that is not yet supported by PolicyWatcher code. | 384 #error OS that is not yet supported by PolicyWatcher code. |
| 385 #endif | 385 #endif |
| 386 | 386 |
| 387 return PolicyWatcher::CreateFromPolicyLoader(std::move(policy_loader)); | 387 return PolicyWatcher::CreateFromPolicyLoader(std::move(policy_loader)); |
| 388 #endif // !(OS_CHROMEOS) | 388 #endif // !(OS_CHROMEOS) |
| 389 } | 389 } |
| 390 | 390 |
| 391 } // namespace remoting | 391 } // namespace remoting |
| OLD | NEW |