#include "content/browser/child_process_launcher_helper_posix.h"
#include "base/check.h"
#include "base/command_line.h"
#include "base/functional/overloaded.h"
#include "base/metrics/field_trial.h"
#include "base/posix/global_descriptors.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "content/browser/posix_file_descriptor_info_impl.h"
#include "content/common/shared_file_util.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_descriptors.h"
#include "content/public/common/content_switches.h"
#include "mojo/public/cpp/platform/platform_channel_endpoint.h"
#include "third_party/abseil-cpp/absl/types/variant.h"
namespace content {
namespace internal {
namespace {
base::PlatformFile OpenFileIfNecessary(const base::FilePath& path,
base::MemoryMappedFile::Region* region) { … }
}
std::unique_ptr<PosixFileDescriptorInfo> CreateDefaultPosixFilesToMap(
int child_process_id,
const mojo::PlatformChannelEndpoint& mojo_channel_remote_endpoint,
const std::map<std::string, absl::variant<base::FilePath, base::ScopedFD>>&
files_to_preload,
const std::string& process_type,
base::CommandLine* command_line) { … }
}
}