| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: { | 299 case base::TERMINATION_STATUS_ABNORMAL_TERMINATION: { |
| 300 delegate_->OnProcessCrashed(exit_code); | 300 delegate_->OnProcessCrashed(exit_code); |
| 301 BrowserThread::PostTask( | 301 BrowserThread::PostTask( |
| 302 BrowserThread::UI, FROM_HERE, | 302 BrowserThread::UI, FROM_HERE, |
| 303 base::Bind(&NotifyProcessCrashed, data_, exit_code)); | 303 base::Bind(&NotifyProcessCrashed, data_, exit_code)); |
| 304 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Crashed2", | 304 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Crashed2", |
| 305 data_.process_type, | 305 data_.process_type, |
| 306 PROCESS_TYPE_MAX); | 306 PROCESS_TYPE_MAX); |
| 307 break; | 307 break; |
| 308 } | 308 } |
| 309 #if defined(OS_ANDROID) |
| 310 case base::TERMINATION_STATUS_OOM_PROTECTED: |
| 311 #endif |
| 309 #if defined(OS_CHROMEOS) | 312 #if defined(OS_CHROMEOS) |
| 310 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: | 313 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED_BY_OOM: |
| 311 #endif | 314 #endif |
| 312 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: { | 315 case base::TERMINATION_STATUS_PROCESS_WAS_KILLED: { |
| 313 delegate_->OnProcessCrashed(exit_code); | 316 delegate_->OnProcessCrashed(exit_code); |
| 314 // Report that this child process was killed. | 317 // Report that this child process was killed. |
| 315 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Killed2", | 318 UMA_HISTOGRAM_ENUMERATION("ChildProcess.Killed2", |
| 316 data_.process_type, | 319 data_.process_type, |
| 317 PROCESS_TYPE_MAX); | 320 PROCESS_TYPE_MAX); |
| 318 break; | 321 break; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 | 378 |
| 376 #if defined(OS_WIN) | 379 #if defined(OS_WIN) |
| 377 | 380 |
| 378 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { | 381 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { |
| 379 OnChildDisconnected(); | 382 OnChildDisconnected(); |
| 380 } | 383 } |
| 381 | 384 |
| 382 #endif | 385 #endif |
| 383 | 386 |
| 384 } // namespace content | 387 } // namespace content |
| OLD | NEW |