| 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/posix/global_descriptors.h" | 5 #include "base/posix/global_descriptors.h" |
| 6 #include "content/browser/child_process_launcher.h" | 6 #include "content/browser/child_process_launcher.h" |
| 7 #include "content/browser/child_process_launcher_helper.h" | 7 #include "content/browser/child_process_launcher_helper.h" |
| 8 #include "content/browser/child_process_launcher_helper_posix.h" | 8 #include "content/browser/child_process_launcher_helper_posix.h" |
| 9 #include "content/browser/renderer_host/render_sandbox_host_linux.h" | 9 #include "content/browser/renderer_host/render_sandbox_host_linux.h" |
| 10 #include "content/browser/zygote_host/zygote_communication_linux.h" | 10 #include "content/browser/zygote_host/zygote_communication_linux.h" |
| 11 #include "content/browser/zygote_host/zygote_host_impl_linux.h" | 11 #include "content/browser/zygote_host/zygote_host_impl_linux.h" |
| 12 #include "content/common/child_process_sandbox_support_impl_linux.h" | 12 #include "content/common/sandbox_linux/sandbox_linux.h" |
| 13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
| 14 #include "content/public/browser/zygote_handle_linux.h" | 14 #include "content/public/browser/zygote_handle_linux.h" |
| 15 #include "content/public/common/content_client.h" | 15 #include "content/public/common/content_client.h" |
| 16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
| 17 #include "content/public/common/result_codes.h" | 17 #include "content/public/common/result_codes.h" |
| 18 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 18 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
| 19 #include "gin/v8_initializer.h" | 19 #include "gin/v8_initializer.h" |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 namespace internal { | 22 namespace internal { |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // static | 167 // static |
| 168 void ChildProcessLauncherHelper::SetProcessBackgroundedOnLauncherThread( | 168 void ChildProcessLauncherHelper::SetProcessBackgroundedOnLauncherThread( |
| 169 base::Process process, bool background) { | 169 base::Process process, bool background) { |
| 170 DCHECK_CURRENTLY_ON(BrowserThread::PROCESS_LAUNCHER); | 170 DCHECK_CURRENTLY_ON(BrowserThread::PROCESS_LAUNCHER); |
| 171 if (process.CanBackgroundProcesses()) | 171 if (process.CanBackgroundProcesses()) |
| 172 process.SetProcessBackgrounded(background); | 172 process.SetProcessBackgrounded(background); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace internal | 175 } // namespace internal |
| 176 } // namespace content | 176 } // namespace content |
| OLD | NEW |