diff options
Diffstat (limited to 'chromium/components/policy/core/common/policy_loader_common.h')
-rw-r--r-- | chromium/components/policy/core/common/policy_loader_common.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/components/policy/core/common/policy_loader_common.h b/chromium/components/policy/core/common/policy_loader_common.h new file mode 100644 index 00000000000..8e84bf89d99 --- /dev/null +++ b/chromium/components/policy/core/common/policy_loader_common.h @@ -0,0 +1,20 @@ +// Copyright 2020 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_LOADER_COMMON_H_ +#define COMPONENTS_POLICY_CORE_COMMON_POLICY_LOADER_COMMON_H_ + +#include "components/policy/policy_export.h" + +namespace policy { + +class PolicyMap; + +// Blocks sensitive policies from having an effect in the specified source. +// Modifies the |policy| in place. Only call this if the source is untrusted. +POLICY_EXPORT void FilterSensitivePolicies(PolicyMap* policy); + +} // namespace policy + +#endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_LOADER_COMMON_H_ |