forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ios] Pass channels over process boundaries
Reland 7484226 with a minor fix for cronet. Change IS_MAC to IS_APPLE to permit passing mach ports for channels across processes. Forward declare MachPortRendezvous in order to avoid the inclusion into launch.h which can cause issues build issues mixing ARC. Haul in MachPortRendezvous for the iOS build. Bug: 1411704, 1412835 Change-Id: I64f29635aa1132d0bbbe74f5ecb6734e5bb68646 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4307240 Reviewed-by: Rohit Rao <rohitrao@chromium.org> Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Reviewed-by: Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/main@{#1113543}
- Loading branch information
Showing
38 changed files
with
226 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef BASE_IOS_SIM_HEADER_SHIMS_H_ | ||
#define BASE_IOS_SIM_HEADER_SHIMS_H_ | ||
|
||
#include "build/blink_buildflags.h" | ||
|
||
#if !BUILDFLAG(USE_BLINK) | ||
#error File can only be included when USE_BLINK is true | ||
#endif | ||
|
||
// This file includes the necessary headers that are not part of the | ||
// iOS public SDK in order to support multiprocess support on iOS. | ||
|
||
__BEGIN_DECLS | ||
|
||
#define BOOTSTRAP_MAX_NAME_LEN 128 | ||
typedef char name_t[BOOTSTRAP_MAX_NAME_LEN]; | ||
kern_return_t bootstrap_check_in(mach_port_t bp, | ||
const name_t service_name, | ||
mach_port_t* sp); | ||
kern_return_t bootstrap_look_up(mach_port_t bp, | ||
const name_t service_name, | ||
mach_port_t* sp); | ||
pid_t audit_token_to_pid(audit_token_t atoken); | ||
|
||
const char* bootstrap_strerror(kern_return_t r); | ||
#define BOOTSTRAP_SUCCESS 0 | ||
#define BOOTSTRAP_NOT_PRIVILEGED 1100 | ||
#define BOOTSTRAP_NAME_IN_USE 1101 | ||
#define BOOTSTRAP_UNKNOWN_SERVICE 1102 | ||
#define BOOTSTRAP_SERVICE_ACTIVE 1103 | ||
#define BOOTSTRAP_BAD_COUNT 1104 | ||
#define BOOTSTRAP_NO_MEMORY 1105 | ||
#define BOOTSTRAP_NO_CHILDREN 1106 | ||
|
||
__END_DECLS | ||
|
||
#endif // BASE_IOS_SIM_HEADER_SHIMS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.