blob: 89e9c6b4702af74a94ced25cd90cca7e19b1d69d [file] [log] [blame]
Avi Drissman4e1b7bc32022-09-15 14:03:501// Copyright 2017 The Chromium Authors
kerrnel0f7a1922017-06-26 23:40:582// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONTENT_BROWSER_SANDBOX_PARAMETERS_MAC_H_
6#define CONTENT_BROWSER_SANDBOX_PARAMETERS_MAC_H_
7
Greg Kerr65f314fb2018-11-09 20:35:258#include "content/common/content_export.h"
9
Greg Kerrc382e2ae2017-12-14 23:43:3410namespace base {
11class CommandLine;
Robert Sesek6a9e65f2019-08-14 20:02:3412class FilePath;
Greg Kerrc382e2ae2017-12-14 23:43:3413}
14
kerrnel0f7a1922017-06-26 23:40:5815namespace sandbox {
Evan Stade526e35a62025-02-01 00:09:3716class SandboxSerializer;
Alex Gougheb6a38f2021-10-22 01:55:1317namespace mojom {
18enum class Sandbox;
19} // namespace mojom
20} // namespace sandbox
kerrnel0f7a1922017-06-26 23:40:5821
22namespace content {
23
Greg Kerrb7fdb792019-04-24 23:05:4624// This populates the sandbox parameters in the client for the given
25// |sandbox_type|. Some parameters may be extracted from the |command_line|.
Ken Rockotaf264582024-05-23 01:03:2726CONTENT_EXPORT bool SetupSandboxParameters(
Alex Gougheb6a38f2021-10-22 01:55:1327 sandbox::mojom::Sandbox sandbox_type,
Greg Kerrb7fdb792019-04-24 23:05:4628 const base::CommandLine& command_line,
Evan Stade526e35a62025-02-01 00:09:3729 sandbox::SandboxSerializer* serializer);
kerrnel0f7a1922017-06-26 23:40:5830
Alex Gough9ab468a6c32019-12-10 19:10:2231// Expands the SandboxType::kNetwork policy to allow reading files from
Robert Sesek6a9e65f2019-08-14 20:02:3432// the specified |path|, which stores TLS certificates used by the browser
33// test web servers.
34CONTENT_EXPORT void SetNetworkTestCertsDirectoryForTesting(
35 const base::FilePath& path);
36
kerrnel0f7a1922017-06-26 23:40:5837} // namespace content
38
39#endif // CONTENT_BROWSER_SANDBOX_PARAMETERS_MAC_H_