Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: content/browser/child_process_launcher_helper_posix.h

Issue 2684433003: Files required by a service now listed in manifest. (Closed)
Patch Set: Fix build. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « content/browser/child_process_launcher_helper_mac.cc ('k') | content/browser/child_process_launcher_helper_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698