Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2021 The Chromium Authors |
Richard Knoll | 5691552 | 2021-03-05 16:07:34 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Will Harris | cd57b83 | 2023-01-05 20:03:10 | [diff] [blame] | 5 | #ifndef CHROME_BROWSER_CHILD_PROCESS_HOST_FLAGS_H_ |
| 6 | #define CHROME_BROWSER_CHILD_PROCESS_HOST_FLAGS_H_ |
Richard Knoll | 5691552 | 2021-03-05 16:07:34 | [diff] [blame] | 7 | |
| 8 | #include "build/build_config.h" |
Will Harris | cd57b83 | 2023-01-05 20:03:10 | [diff] [blame] | 9 | #include "content/public/browser/child_process_host.h" |
Richard Knoll | 5691552 | 2021-03-05 16:07:34 | [diff] [blame] | 10 | |
| 11 | namespace chrome { |
| 12 | |
| 13 | // Flags for Chrome specific child processes to resolve the appropriate process |
Marshall Greenblatt | 46a4055 | 2023-04-21 20:23:36 | [diff] [blame] | 14 | // via ChromeContentBrowserClient::GetChildProcessSuffix(). |
Richard Knoll | 5691552 | 2021-03-05 16:07:34 | [diff] [blame] | 15 | enum ChildProcessHostFlags { |
Xiaohan Wang | 4d5c504 | 2022-01-18 21:54:37 | [diff] [blame] | 16 | #if BUILDFLAG(IS_MAC) |
Richard Knoll | 5691552 | 2021-03-05 16:07:34 | [diff] [blame] | 17 | // Starts a child process with the macOS alert style to show notifications as |
| 18 | // alerts instead of banners which are shown by the main app. |
| 19 | kChildProcessHelperAlerts = |
| 20 | content::ChildProcessHost::CHILD_EMBEDDER_FIRST + 1, |
Xiaohan Wang | 4d5c504 | 2022-01-18 21:54:37 | [diff] [blame] | 21 | #endif // BUILDFLAG(IS_MAC) |
Richard Knoll | 5691552 | 2021-03-05 16:07:34 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | } // namespace chrome |
| 25 | |
Will Harris | cd57b83 | 2023-01-05 20:03:10 | [diff] [blame] | 26 | #endif // CHROME_BROWSER_CHILD_PROCESS_HOST_FLAGS_H_ |