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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); | 141 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); |
142 static const char* kForwardSwitches[] = { | 142 static const char* kForwardSwitches[] = { |
143 switches::kDisableLogging, | 143 switches::kDisableLogging, |
144 switches::kEnableLogging, | 144 switches::kEnableLogging, |
145 switches::kIPCConnectionTimeout, | 145 switches::kIPCConnectionTimeout, |
146 switches::kLoggingLevel, | 146 switches::kLoggingLevel, |
147 switches::kTraceToConsole, | 147 switches::kTraceToConsole, |
148 switches::kV, | 148 switches::kV, |
149 switches::kVModule, | 149 switches::kVModule, |
150 #if defined(OS_WIN) | |
151 switches::kEnableHighResolutionTime, | |
152 #endif | |
153 }; | 150 }; |
154 cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches, | 151 cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches, |
155 arraysize(kForwardSwitches)); | 152 arraysize(kForwardSwitches)); |
156 | 153 |
157 child_process_.reset(new ChildProcessLauncher( | 154 child_process_.reset(new ChildProcessLauncher( |
158 delegate, | 155 delegate, |
159 cmd_line, | 156 cmd_line, |
160 data_.id, | 157 data_.id, |
161 this)); | 158 this)); |
162 } | 159 } |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 358 |
362 void BrowserChildProcessHostImpl::OnProcessExitedEarly( | 359 void BrowserChildProcessHostImpl::OnProcessExitedEarly( |
363 base::WaitableEvent* event) { | 360 base::WaitableEvent* event) { |
364 DeleteProcessWaitableEvent(event); | 361 DeleteProcessWaitableEvent(event); |
365 OnChildDisconnected(); | 362 OnChildDisconnected(); |
366 } | 363 } |
367 | 364 |
368 #endif | 365 #endif |
369 | 366 |
370 } // namespace content | 367 } // namespace content |
OLD | NEW |