summaryrefslogtreecommitdiff
path: root/chromium/components/policy/core/common/policy_loader_common.h
blob: 8e84bf89d995b6b18e5ce1f8e8e2c802e113244f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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_