| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/child_process_launcher.h" | 5 #include "chrome/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/lock.h" | 10 #include "base/lock.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/thread.h" | 13 #include "base/threading/thread.h" |
| 14 #include "chrome/browser/browser_thread.h" | 14 #include "chrome/browser/browser_thread.h" |
| 15 #include "chrome/common/chrome_descriptors.h" | 15 #include "chrome/common/chrome_descriptors.h" |
| 16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
| 17 #include "chrome/common/process_watcher.h" | 17 #include "chrome/common/process_watcher.h" |
| 18 #include "chrome/common/result_codes.h" | 18 #include "chrome/common/result_codes.h" |
| 19 | 19 |
| 20 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
| 21 #include "base/file_path.h" | 21 #include "base/file_path.h" |
| 22 #include "chrome/common/sandbox_policy.h" | 22 #include "chrome/common/sandbox_policy.h" |
| 23 #elif defined(OS_LINUX) | 23 #elif defined(OS_LINUX) |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 if (status != base::TERMINATION_STATUS_STILL_RUNNING) | 333 if (status != base::TERMINATION_STATUS_STILL_RUNNING) |
| 334 context_->process_.Close(); | 334 context_->process_.Close(); |
| 335 | 335 |
| 336 return status; | 336 return status; |
| 337 } | 337 } |
| 338 | 338 |
| 339 void ChildProcessLauncher::SetProcessBackgrounded(bool background) { | 339 void ChildProcessLauncher::SetProcessBackgrounded(bool background) { |
| 340 DCHECK(!context_->starting_); | 340 DCHECK(!context_->starting_); |
| 341 context_->process_.SetProcessBackgrounded(background); | 341 context_->process_.SetProcessBackgrounded(background); |
| 342 } | 342 } |
| OLD | NEW |