OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/child_process_launcher.h" | 5 #include "content/browser/child_process_launcher.h" |
6 | 6 |
7 #include <utility> // For std::pair. | 7 #include <utility> // For std::pair. |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
15 #include "content/browser/browser_thread.h" | 15 #include "content/browser/browser_thread.h" |
16 #include "content/common/chrome_descriptors.h" | 16 #include "content/common/chrome_descriptors.h" |
17 #include "content/common/process_watcher.h" | 17 #include "content/common/process_watcher.h" |
18 #include "content/common/result_codes.h" | |
19 #include "content/public/browser/content_browser_client.h" | 18 #include "content/public/browser/content_browser_client.h" |
20 #include "content/public/common/content_switches.h" | 19 #include "content/public/common/content_switches.h" |
| 20 #include "content/public/common/result_codes.h" |
21 | 21 |
22 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
23 #include "base/file_path.h" | 23 #include "base/file_path.h" |
24 #include "content/common/sandbox_policy.h" | 24 #include "content/common/sandbox_policy.h" |
25 #elif defined(OS_MACOSX) | 25 #elif defined(OS_MACOSX) |
26 #include "content/browser/mach_broker_mac.h" | 26 #include "content/browser/mach_broker_mac.h" |
27 #elif defined(OS_POSIX) | 27 #elif defined(OS_POSIX) |
28 #include "base/memory/singleton.h" | 28 #include "base/memory/singleton.h" |
29 #include "content/browser/zygote_host_linux.h" | 29 #include "content/browser/zygote_host_linux.h" |
30 #include "content/browser/renderer_host/render_sandbox_host_linux.h" | 30 #include "content/browser/renderer_host/render_sandbox_host_linux.h" |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 NewRunnableFunction( | 376 NewRunnableFunction( |
377 &ChildProcessLauncher::Context::SetProcessBackgrounded, | 377 &ChildProcessLauncher::Context::SetProcessBackgrounded, |
378 GetHandle(), background)); | 378 GetHandle(), background)); |
379 } | 379 } |
380 | 380 |
381 void ChildProcessLauncher::SetTerminateChildOnShutdown( | 381 void ChildProcessLauncher::SetTerminateChildOnShutdown( |
382 bool terminate_on_shutdown) { | 382 bool terminate_on_shutdown) { |
383 if (context_) | 383 if (context_) |
384 context_->set_terminate_child_on_shutdown(terminate_on_shutdown); | 384 context_->set_terminate_child_on_shutdown(terminate_on_shutdown); |
385 } | 385 } |
OLD | NEW |