OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/policy_loader_win.h" | 5 #include "components/policy/core/common/policy_loader_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <ntdsapi.h> // For Ds[Un]Bind | 8 #include <ntdsapi.h> // For Ds[Un]Bind |
9 #include <rpc.h> // For struct GUID | 9 #include <rpc.h> // For struct GUID |
10 #include <shlwapi.h> // For PathIsUNC() | 10 #include <shlwapi.h> // For PathIsUNC() |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "base/win/windows_version.h" | 35 #include "base/win/windows_version.h" |
36 #include "components/json_schema/json_schema_constants.h" | 36 #include "components/json_schema/json_schema_constants.h" |
37 #include "components/policy/core/common/policy_bundle.h" | 37 #include "components/policy/core/common/policy_bundle.h" |
38 #include "components/policy/core/common/policy_load_status.h" | 38 #include "components/policy/core/common/policy_load_status.h" |
39 #include "components/policy/core/common/policy_map.h" | 39 #include "components/policy/core/common/policy_map.h" |
40 #include "components/policy/core/common/policy_namespace.h" | 40 #include "components/policy/core/common/policy_namespace.h" |
41 #include "components/policy/core/common/policy_types.h" | 41 #include "components/policy/core/common/policy_types.h" |
42 #include "components/policy/core/common/preg_parser_win.h" | 42 #include "components/policy/core/common/preg_parser_win.h" |
43 #include "components/policy/core/common/registry_dict_win.h" | 43 #include "components/policy/core/common/registry_dict_win.h" |
44 #include "components/policy/core/common/schema.h" | 44 #include "components/policy/core/common/schema.h" |
45 #include "policy/policy_constants.h" | 45 #include "components/policy/policy_constants.h" |
46 | 46 |
47 namespace schema = json_schema_constants; | 47 namespace schema = json_schema_constants; |
48 | 48 |
49 namespace policy { | 49 namespace policy { |
50 | 50 |
51 namespace { | 51 namespace { |
52 | 52 |
53 const char kKeyMandatory[] = "policy"; | 53 const char kKeyMandatory[] = "policy"; |
54 const char kKeyRecommended[] = "recommended"; | 54 const char kKeyRecommended[] = "recommended"; |
55 const char kKeyThirdParty[] = "3rdparty"; | 55 const char kKeyThirdParty[] = "3rdparty"; |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 | 606 |
607 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { | 607 void PolicyLoaderWin::OnObjectSignaled(HANDLE object) { |
608 DCHECK(object == user_policy_changed_event_.handle() || | 608 DCHECK(object == user_policy_changed_event_.handle() || |
609 object == machine_policy_changed_event_.handle()) | 609 object == machine_policy_changed_event_.handle()) |
610 << "unexpected object signaled policy reload, obj = " | 610 << "unexpected object signaled policy reload, obj = " |
611 << std::showbase << std::hex << object; | 611 << std::showbase << std::hex << object; |
612 Reload(false); | 612 Reload(false); |
613 } | 613 } |
614 | 614 |
615 } // namespace policy | 615 } // namespace policy |
OLD | NEW |