kerrnel | 0f7a192 | 2017-06-26 23:40:58 | [diff] [blame] | 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 | |
Greg Kerr | 65f314fb | 2018-11-09 20:35:25 | [diff] [blame] | 8 | #include "content/common/content_export.h" |
Greg Kerr | b7fdb79 | 2019-04-24 23:05:46 | [diff] [blame] | 9 | #include "services/service_manager/sandbox/sandbox_type.h" |
Greg Kerr | 65f314fb | 2018-11-09 20:35:25 | [diff] [blame] | 10 | |
Greg Kerr | c382e2ae | 2017-12-14 23:43:34 | [diff] [blame] | 11 | namespace base { |
| 12 | class CommandLine; |
Robert Sesek | 6a9e65f | 2019-08-14 20:02:34 | [diff] [blame] | 13 | class FilePath; |
Greg Kerr | c382e2ae | 2017-12-14 23:43:34 | [diff] [blame] | 14 | } |
| 15 | |
kerrnel | 0f7a192 | 2017-06-26 23:40:58 | [diff] [blame] | 16 | namespace sandbox { |
| 17 | class SeatbeltExecClient; |
| 18 | } |
| 19 | |
| 20 | namespace content { |
| 21 | |
Greg Kerr | b7fdb79 | 2019-04-24 23:05:46 | [diff] [blame] | 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 | service_manager::SandboxType sandbox_type, |
| 26 | const base::CommandLine& command_line, |
Greg Kerr | 65f314fb | 2018-11-09 20:35:25 | [diff] [blame] | 27 | sandbox::SeatbeltExecClient* client); |
kerrnel | 0f7a192 | 2017-06-26 23:40:58 | [diff] [blame] | 28 | |
Robert Sesek | 6a9e65f | 2019-08-14 20:02:34 | [diff] [blame] | 29 | // 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. |
| 32 | CONTENT_EXPORT void SetNetworkTestCertsDirectoryForTesting( |
| 33 | const base::FilePath& path); |
| 34 | |
kerrnel | 0f7a192 | 2017-06-26 23:40:58 | [diff] [blame] | 35 | } // namespace content |
| 36 | |
| 37 | #endif // CONTENT_BROWSER_SANDBOX_PARAMETERS_MAC_H_ |