OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/path_service.h" | 5 #include "base/path_service.h" |
6 #include "base/posix/global_descriptors.h" | 6 #include "base/posix/global_descriptors.h" |
7 #include "content/browser/child_process_launcher.h" | 7 #include "content/browser/child_process_launcher.h" |
8 #include "content/browser/child_process_launcher_helper.h" | 8 #include "content/browser/child_process_launcher_helper.h" |
9 #include "content/browser/child_process_launcher_helper_posix.h" | 9 #include "content/browser/child_process_launcher_helper_posix.h" |
10 #include "content/browser/renderer_host/render_sandbox_host_linux.h" | 10 #include "content/browser/renderer_host/render_sandbox_host_linux.h" |
11 #include "content/browser/zygote_host/zygote_communication_linux.h" | 11 #include "content/browser/zygote_host/zygote_communication_linux.h" |
12 #include "content/browser/zygote_host/zygote_host_impl_linux.h" | 12 #include "content/browser/zygote_host/zygote_host_impl_linux.h" |
13 #include "content/common/sandbox_linux/sandbox_linux.h" | 13 #include "content/common/sandbox_linux/sandbox_linux.h" |
14 #include "content/public/browser/content_browser_client.h" | 14 #include "content/public/browser/content_browser_client.h" |
15 #include "content/public/browser/zygote_handle_linux.h" | 15 #include "content/public/browser/zygote_handle_linux.h" |
16 #include "content/public/common/content_client.h" | 16 #include "content/public/common/content_client.h" |
17 #include "content/public/common/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
18 #include "content/public/common/result_codes.h" | 18 #include "content/public/common/result_codes.h" |
19 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 19 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
20 #include "gin/v8_initializer.h" | |
21 | 20 |
22 namespace content { | 21 namespace content { |
23 namespace internal { | 22 namespace internal { |
24 | 23 |
25 mojo::edk::ScopedPlatformHandle | 24 mojo::edk::ScopedPlatformHandle |
26 ChildProcessLauncherHelper::PrepareMojoPipeHandlesOnClientThread() { | 25 ChildProcessLauncherHelper::PrepareMojoPipeHandlesOnClientThread() { |
27 DCHECK_CURRENTLY_ON(client_thread_id_); | 26 DCHECK_CURRENTLY_ON(client_thread_id_); |
28 return mojo::edk::ScopedPlatformHandle(); | 27 return mojo::edk::ScopedPlatformHandle(); |
29 } | 28 } |
30 | 29 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 bool result = base::PathService::Get(base::BasePathKey::DIR_EXE, &exe_dir); | 160 bool result = base::PathService::Get(base::BasePathKey::DIR_EXE, &exe_dir); |
162 DCHECK(result); | 161 DCHECK(result); |
163 base::File file(exe_dir.Append(path), | 162 base::File file(exe_dir.Append(path), |
164 base::File::FLAG_OPEN | base::File::FLAG_READ); | 163 base::File::FLAG_OPEN | base::File::FLAG_READ); |
165 *region = base::MemoryMappedFile::Region::kWholeFile; | 164 *region = base::MemoryMappedFile::Region::kWholeFile; |
166 return file; | 165 return file; |
167 } | 166 } |
168 | 167 |
169 } // namespace internal | 168 } // namespace internal |
170 } // namespace content | 169 } // namespace content |
OLD | NEW |