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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 } | 305 } |
306 | 306 |
307 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) { | 307 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) { |
308 child_process_->SetProcessBackgrounded(backgrounded); | 308 child_process_->SetProcessBackgrounded(backgrounded); |
309 } | 309 } |
310 | 310 |
311 void BrowserChildProcessHostImpl::AddFilter(BrowserMessageFilter* filter) { | 311 void BrowserChildProcessHostImpl::AddFilter(BrowserMessageFilter* filter) { |
312 child_process_host_->AddFilter(filter->GetFilter()); | 312 child_process_host_->AddFilter(filter->GetFilter()); |
313 } | 313 } |
314 | 314 |
315 shell::InterfaceProvider* BrowserChildProcessHostImpl::GetRemoteInterfaces() { | 315 service_manager::InterfaceProvider* |
| 316 BrowserChildProcessHostImpl::GetRemoteInterfaces() { |
316 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 317 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
317 if (!child_connection_) | 318 if (!child_connection_) |
318 return nullptr; | 319 return nullptr; |
319 | 320 |
320 return child_connection_->GetRemoteInterfaces(); | 321 return child_connection_->GetRemoteInterfaces(); |
321 } | 322 } |
322 | 323 |
323 void BrowserChildProcessHostImpl::HistogramBadMessageTerminated( | 324 void BrowserChildProcessHostImpl::HistogramBadMessageTerminated( |
324 int process_type) { | 325 int process_type) { |
325 UMA_HISTOGRAM_ENUMERATION("ChildProcess.BadMessgeTerminated", process_type, | 326 UMA_HISTOGRAM_ENUMERATION("ChildProcess.BadMessgeTerminated", process_type, |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 | 598 |
598 #if defined(OS_WIN) | 599 #if defined(OS_WIN) |
599 | 600 |
600 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { | 601 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { |
601 OnChildDisconnected(); | 602 OnChildDisconnected(); |
602 } | 603 } |
603 | 604 |
604 #endif | 605 #endif |
605 | 606 |
606 } // namespace content | 607 } // namespace content |
OLD | NEW |