Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: content/browser/browser_child_process_host_impl.cc

Issue 2752863002: Remove BrowserChildProcessHostImpl::SetBackgrounded (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/browser_child_process_host_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698