blob: 032f60f632f2afcaa83407dbedaeba5c912e5670 [file] [log] [blame]
kerrnel0f7a1922017-06-26 23:40:581// Copyright 2017 The Chromium Authors. All rights reserved.
2// 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"
Greg Kerrb7fdb792019-04-24 23:05:469#include "services/service_manager/sandbox/sandbox_type.h"
Greg Kerr65f314fb2018-11-09 20:35:2510
Greg Kerrc382e2ae2017-12-14 23:43:3411namespace base {
12class CommandLine;
Robert Sesek6a9e65f2019-08-14 20:02:3413class FilePath;
Greg Kerrc382e2ae2017-12-14 23:43:3414}
15
kerrnel0f7a1922017-06-26 23:40:5816namespace sandbox {
17class SeatbeltExecClient;
18}
19
20namespace content {
21
Greg Kerrb7fdb792019-04-24 23:05:4622// This populates the sandbox parameters in the client for the given
23// |sandbox_type|. Some parameters may be extracted from the |command_line|.
24CONTENT_EXPORT void SetupSandboxParameters(
25 service_manager::SandboxType sandbox_type,
26 const base::CommandLine& command_line,
Greg Kerr65f314fb2018-11-09 20:35:2527 sandbox::SeatbeltExecClient* client);
kerrnel0f7a1922017-06-26 23:40:5828
Robert Sesek6a9e65f2019-08-14 20:02:3429// Expands the SANDBOX_TYPE_NETWORK policy to allow reading files from
30// the specified |path|, which stores TLS certificates used by the browser
31// test web servers.
32CONTENT_EXPORT void SetNetworkTestCertsDirectoryForTesting(
33 const base::FilePath& path);
34
kerrnel0f7a1922017-06-26 23:40:5835} // namespace content
36
37#endif // CONTENT_BROWSER_SANDBOX_PARAMETERS_MAC_H_