1 // 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 
8 #include "content/common/content_export.h"
9 #include "sandbox/policy/sandbox_type.h"
10 
11 namespace base {
12 class CommandLine;
13 class FilePath;
14 }
15 
16 namespace sandbox {
17 class SeatbeltExecClient;
18 }
19 
20 namespace content {
21 
22 // This populates the sandbox parameters in the client for the given
23 // |sandbox_type|. Some parameters may be extracted from the |command_line|.
24 CONTENT_EXPORT void SetupSandboxParameters(
25     sandbox::policy::SandboxType sandbox_type,
26     const base::CommandLine& command_line,
27     sandbox::SeatbeltExecClient* client);
28 
29 // Expands the SandboxType::kNetwork policy to allow reading files from
30 // the specified |path|, which stores TLS certificates used by the browser
31 // test web servers.
32 CONTENT_EXPORT void SetNetworkTestCertsDirectoryForTesting(
33     const base::FilePath& path);
34 
35 }  // namespace content
36 
37 #endif  // CONTENT_BROWSER_SANDBOX_PARAMETERS_MAC_H_
38