Index: content/browser/child_process_launcher_helper.h |
diff --git a/content/browser/child_process_launcher_helper.h b/content/browser/child_process_launcher_helper.h |
index ead7d44f4936bc5dee5fcdc0d86a7f0b2522fe4d..11ecce47453da661067cbd202c0ac3a34d1ea72c 100644 |
--- a/content/browser/child_process_launcher_helper.h |
+++ b/content/browser/child_process_launcher_helper.h |
@@ -7,6 +7,8 @@ |
#include <memory> |
+#include "base/files/file.h" |
+#include "base/files/memory_mapped_file.h" |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
#include "base/process/kill.h" |
@@ -16,6 +18,7 @@ |
#include "content/public/common/result_codes.h" |
#include "mojo/edk/embedder/embedder.h" |
#include "mojo/edk/embedder/scoped_platform_handle.h" |
+#include "services/catalog/public/cpp/manifest_parsing_util.h" |
#if defined(OS_WIN) |
#include "sandbox/win/src/sandbox_types.h" |
@@ -155,6 +158,16 @@ class ChildProcessLauncherHelper : |
static void SetProcessBackgroundedOnLauncherThread( |
base::Process process, bool background); |
+ static void SetRegisteredFilesForService( |
+ 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. |
+ static base::File OpenFile(const base::FilePath& path, |
Ken Rockot(use gerrit already)
2017/02/09 17:17:28
nit: Maybe a more detailed name like OpenFileToSha
Jay Civelli
2017/02/09 22:08:27
Done.
|
+ base::MemoryMappedFile::Region* region); |
+ |
private: |
friend class base::RefCountedThreadSafe<ChildProcessLauncherHelper>; |