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..5ce9f035dd500899c4ae0205941a4b3bfa3e585f 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,23 @@ 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, |
+ std::unique_ptr<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 |