| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser_child_process_host_impl.h" | 5 #include "content/browser/browser_child_process_host_impl.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 switches::kDisableLogging, | 146 switches::kDisableLogging, |
| 147 switches::kEnableDCHECK, | 147 switches::kEnableDCHECK, |
| 148 switches::kEnableLogging, | 148 switches::kEnableLogging, |
| 149 switches::kLoggingLevel, | 149 switches::kLoggingLevel, |
| 150 switches::kTraceToConsole, | 150 switches::kTraceToConsole, |
| 151 switches::kV, | 151 switches::kV, |
| 152 switches::kVModule, | 152 switches::kVModule, |
| 153 #if defined(OS_POSIX) | 153 #if defined(OS_POSIX) |
| 154 switches::kChildCleanExit, | 154 switches::kChildCleanExit, |
| 155 #endif | 155 #endif |
| 156 #if defined(OS_WIN) |
| 157 switches::kEnableHighResolutionTime, |
| 158 #endif |
| 156 }; | 159 }; |
| 157 cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches, | 160 cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches, |
| 158 arraysize(kForwardSwitches)); | 161 arraysize(kForwardSwitches)); |
| 159 | 162 |
| 160 child_process_.reset(new ChildProcessLauncher( | 163 child_process_.reset(new ChildProcessLauncher( |
| 161 #if defined(OS_WIN) | 164 #if defined(OS_WIN) |
| 162 delegate, | 165 delegate, |
| 163 #elif defined(OS_POSIX) | 166 #elif defined(OS_POSIX) |
| 164 use_zygote, | 167 use_zygote, |
| 165 environ, | 168 environ, |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 347 |
| 345 void BrowserChildProcessHostImpl::OnProcessExitedEarly( | 348 void BrowserChildProcessHostImpl::OnProcessExitedEarly( |
| 346 base::WaitableEvent* event) { | 349 base::WaitableEvent* event) { |
| 347 DeleteProcessWaitableEvent(event); | 350 DeleteProcessWaitableEvent(event); |
| 348 OnChildDisconnected(); | 351 OnChildDisconnected(); |
| 349 } | 352 } |
| 350 | 353 |
| 351 #endif | 354 #endif |
| 352 | 355 |
| 353 } // namespace content | 356 } // namespace content |
| OLD | NEW |