| Index: content/browser/child_process_launcher_helper_posix.h
|
| diff --git a/content/browser/child_process_launcher_helper_posix.h b/content/browser/child_process_launcher_helper_posix.h
|
| index 3b7a2aeb4dcabc273907fd38d5d9134eaea61980..8316ab903f87042813d47283233b799db1101d98 100644
|
| --- a/content/browser/child_process_launcher_helper_posix.h
|
| +++ b/content/browser/child_process_launcher_helper_posix.h
|
| @@ -7,8 +7,13 @@
|
|
|
| #include <memory>
|
|
|
| +#include "base/files/file.h"
|
| +#include "base/files/memory_mapped_file.h"
|
| +#include "services/catalog/public/cpp/manifest_parsing_util.h"
|
| +
|
| namespace base {
|
| class CommandLine;
|
| +class FilePath;
|
| } // namespace base
|
|
|
| namespace mojo {
|
| @@ -27,9 +32,22 @@ class FileDescriptorInfo;
|
| namespace internal {
|
|
|
| std::unique_ptr<FileDescriptorInfo> CreateDefaultPosixFilesToMap(
|
| - const base::CommandLine& command_line,
|
| int child_process_id,
|
| - const mojo::edk::PlatformHandle& mojo_client_handle);
|
| + const mojo::edk::PlatformHandle& mojo_client_handle,
|
| + bool include_service_required_files,
|
| + const std::string& process_type,
|
| + base::CommandLine* command_line);
|
| +
|
| +// Called by the service manager to register the files that should be mapped for
|
| +// a service in the child process.
|
| +void SetFilesToShareForServicePosix(const std::string& service_name,
|
| + catalog::RequiredFileMap required_files);
|
| +
|
| +// Opens the file in read mode at the given path. Note that the path should be
|
| +// relative and the way it is resolved is platform specific.
|
| +// |region| is set to the region of the file that should be read.
|
| +base::File OpenFileToShare(const base::FilePath& path,
|
| + base::MemoryMappedFile::Region* region);
|
|
|
| } // namespace internal
|
|
|
|
|