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/debug/dump_without_crashing.h" | 10 #include "base/debug/dump_without_crashing.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 SandboxedProcessLauncherDelegate* delegate, | 180 SandboxedProcessLauncherDelegate* delegate, |
181 base::CommandLine* cmd_line, | 181 base::CommandLine* cmd_line, |
182 bool terminate_on_shutdown) { | 182 bool terminate_on_shutdown) { |
183 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 183 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
184 | 184 |
185 GetContentClient()->browser()->AppendExtraCommandLineSwitches( | 185 GetContentClient()->browser()->AppendExtraCommandLineSwitches( |
186 cmd_line, data_.id); | 186 cmd_line, data_.id); |
187 | 187 |
188 const base::CommandLine& browser_command_line = | 188 const base::CommandLine& browser_command_line = |
189 *base::CommandLine::ForCurrentProcess(); | 189 *base::CommandLine::ForCurrentProcess(); |
190 static const char* kForwardSwitches[] = { | 190 static const char* const kForwardSwitches[] = { |
191 switches::kDisableLogging, | 191 switches::kDisableLogging, |
192 switches::kEnableLogging, | 192 switches::kEnableLogging, |
193 switches::kIPCConnectionTimeout, | 193 switches::kIPCConnectionTimeout, |
194 switches::kLoggingLevel, | 194 switches::kLoggingLevel, |
195 switches::kTraceToConsole, | 195 switches::kTraceToConsole, |
196 switches::kV, | 196 switches::kV, |
197 switches::kVModule, | 197 switches::kVModule, |
198 }; | 198 }; |
199 cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches, | 199 cmd_line->CopySwitchesFrom(browser_command_line, kForwardSwitches, |
200 arraysize(kForwardSwitches)); | 200 arraysize(kForwardSwitches)); |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 | 440 |
441 #if defined(OS_WIN) | 441 #if defined(OS_WIN) |
442 | 442 |
443 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { | 443 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { |
444 OnChildDisconnected(); | 444 OnChildDisconnected(); |
445 } | 445 } |
446 | 446 |
447 #endif | 447 #endif |
448 | 448 |
449 } // namespace content | 449 } // namespace content |
OLD | NEW |