summaryrefslogtreecommitdiff
path: root/chromium/sandbox/policy/features.h
blob: 5f7b4483c1e7f8e15ba6cf6d7eee890e2ad8eb5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright 2017 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.

// This file defines all the public base::FeatureList features for the content
// module.

#ifndef SANDBOX_POLICY_FEATURES_H_
#define SANDBOX_POLICY_FEATURES_H_

#include "base/feature_list.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "sandbox/policy/export.h"

namespace sandbox {
namespace policy {
namespace features {

#if defined(TOOLKIT_QT) || (!defined(OS_MAC) && !defined(OS_FUCHSIA))
SANDBOX_POLICY_EXPORT extern const base::Feature kNetworkServiceSandbox;
#endif

#if defined(OS_WIN)
SANDBOX_POLICY_EXPORT extern const base::Feature kWinSboxDisableKtmComponent;
SANDBOX_POLICY_EXPORT extern const base::Feature kWinSboxDisableExtensionPoints;
SANDBOX_POLICY_EXPORT extern const base::Feature kGpuAppContainer;
SANDBOX_POLICY_EXPORT extern const base::Feature kGpuLPAC;
#endif  // defined(OS_WIN)

#if !defined(OS_ANDROID)
SANDBOX_POLICY_EXPORT extern const base::Feature kXRSandbox;
#endif  // !defined(OS_ANDROID)

#if BUILDFLAG(IS_CHROMEOS_ASH)
SANDBOX_POLICY_EXPORT extern const base::Feature kSpectreVariant2Mitigation;
SANDBOX_POLICY_EXPORT extern const base::Feature
    kForceSpectreVariant2Mitigation;
#endif  // BUILDFLAG(IS_CHROMEOS_ASH)

#if defined(OS_WIN)
// Returns whether Network Service Sandbox is enabled in LPAC mode.
SANDBOX_POLICY_EXPORT bool IsNetworkServiceSandboxLPACEnabled();
#endif
}  // namespace features
}  // namespace policy
}  // namespace sandbox

#endif  // SANDBOX_POLICY_FEATURES_H_