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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // Report that this child process was killed. | 289 // Report that this child process was killed. |
290 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Killed2", | 290 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Killed2", |
291 data_.process_type, | 291 data_.process_type, |
292 PROCESS_TYPE_MAX); | 292 PROCESS_TYPE_MAX); |
293 break; | 293 break; |
294 } | 294 } |
295 case base::TERMINATION_STATUS_STILL_RUNNING: { | 295 case base::TERMINATION_STATUS_STILL_RUNNING: { |
296 UMA_HISTOGRAM_ENUMERATION("ChildProcess.DisconnectedAlive2", | 296 UMA_HISTOGRAM_ENUMERATION("ChildProcess.DisconnectedAlive2", |
297 data_.process_type, | 297 data_.process_type, |
298 PROCESS_TYPE_MAX); | 298 PROCESS_TYPE_MAX); |
| 299 break; |
299 } | 300 } |
300 default: | 301 default: |
301 break; | 302 break; |
302 } | 303 } |
303 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Disconnected2", | 304 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Disconnected2", |
304 data_.process_type, | 305 data_.process_type, |
305 PROCESS_TYPE_MAX); | 306 PROCESS_TYPE_MAX); |
306 } | 307 } |
307 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, | 308 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, |
308 base::Bind(&NotifyProcessHostDisconnected, data_)); | 309 base::Bind(&NotifyProcessHostDisconnected, data_)); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 353 |
353 void BrowserChildProcessHostImpl::OnProcessExitedEarly( | 354 void BrowserChildProcessHostImpl::OnProcessExitedEarly( |
354 base::WaitableEvent* event) { | 355 base::WaitableEvent* event) { |
355 DeleteProcessWaitableEvent(event); | 356 DeleteProcessWaitableEvent(event); |
356 OnChildDisconnected(); | 357 OnChildDisconnected(); |
357 } | 358 } |
358 | 359 |
359 #endif | 360 #endif |
360 | 361 |
361 } // namespace content | 362 } // namespace content |
OLD | NEW |