| 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/alias.h" | 10 #include "base/debug/alias.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 std::string BrowserChildProcessHostImpl::GetServiceRequestChannelToken() { | 304 std::string BrowserChildProcessHostImpl::GetServiceRequestChannelToken() { |
| 305 return child_connection_->service_token(); | 305 return child_connection_->service_token(); |
| 306 } | 306 } |
| 307 | 307 |
| 308 void BrowserChildProcessHostImpl::ForceShutdown() { | 308 void BrowserChildProcessHostImpl::ForceShutdown() { |
| 309 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 309 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 310 g_child_process_list.Get().remove(this); | 310 g_child_process_list.Get().remove(this); |
| 311 child_process_host_->ForceShutdown(); | 311 child_process_host_->ForceShutdown(); |
| 312 } | 312 } |
| 313 | 313 |
| 314 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) { | |
| 315 child_process_->SetProcessBackgrounded(backgrounded); | |
| 316 } | |
| 317 | |
| 318 void BrowserChildProcessHostImpl::AddFilter(BrowserMessageFilter* filter) { | 314 void BrowserChildProcessHostImpl::AddFilter(BrowserMessageFilter* filter) { |
| 319 child_process_host_->AddFilter(filter->GetFilter()); | 315 child_process_host_->AddFilter(filter->GetFilter()); |
| 320 } | 316 } |
| 321 | 317 |
| 322 service_manager::InterfaceProvider* | 318 service_manager::InterfaceProvider* |
| 323 BrowserChildProcessHostImpl::GetRemoteInterfaces() { | 319 BrowserChildProcessHostImpl::GetRemoteInterfaces() { |
| 324 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 320 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 325 if (!child_connection_) | 321 if (!child_connection_) |
| 326 return nullptr; | 322 return nullptr; |
| 327 | 323 |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 | 611 |
| 616 #if defined(OS_WIN) | 612 #if defined(OS_WIN) |
| 617 | 613 |
| 618 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { | 614 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { |
| 619 OnChildDisconnected(); | 615 OnChildDisconnected(); |
| 620 } | 616 } |
| 621 | 617 |
| 622 #endif | 618 #endif |
| 623 | 619 |
| 624 } // namespace content | 620 } // namespace content |
| OLD | NEW |