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

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

Issue 2096643002: Eliminate MojoApplicationHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mah3
Patch Set: . Created 4 years, 6 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
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/dump_without_crashing.h" 10 #include "base/debug/dump_without_crashing.h"
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 void BrowserChildProcessHostImpl::SetName(const base::string16& name) { 271 void BrowserChildProcessHostImpl::SetName(const base::string16& name) {
272 DCHECK_CURRENTLY_ON(BrowserThread::IO); 272 DCHECK_CURRENTLY_ON(BrowserThread::IO);
273 data_.name = name; 273 data_.name = name;
274 } 274 }
275 275
276 void BrowserChildProcessHostImpl::SetHandle(base::ProcessHandle handle) { 276 void BrowserChildProcessHostImpl::SetHandle(base::ProcessHandle handle) {
277 DCHECK_CURRENTLY_ON(BrowserThread::IO); 277 DCHECK_CURRENTLY_ON(BrowserThread::IO);
278 data_.handle = handle; 278 data_.handle = handle;
279 } 279 }
280 280
281 ServiceRegistry* BrowserChildProcessHostImpl::GetServiceRegistry() { 281 shell::InterfaceRegistry* BrowserChildProcessHostImpl::GetInterfaceRegistry() {
282 DCHECK_CURRENTLY_ON(BrowserThread::IO); 282 DCHECK_CURRENTLY_ON(BrowserThread::IO);
283 return delegate_->GetServiceRegistry(); 283 return delegate_->GetInterfaceRegistry();
284 }
285
286 shell::InterfaceProvider* BrowserChildProcessHostImpl::GetRemoteInterfaces() {
287 DCHECK_CURRENTLY_ON(BrowserThread::IO);
288 return delegate_->GetRemoteInterfaces();
284 } 289 }
285 290
286 void BrowserChildProcessHostImpl::ForceShutdown() { 291 void BrowserChildProcessHostImpl::ForceShutdown() {
287 DCHECK_CURRENTLY_ON(BrowserThread::IO); 292 DCHECK_CURRENTLY_ON(BrowserThread::IO);
288 g_child_process_list.Get().remove(this); 293 g_child_process_list.Get().remove(this);
289 child_process_host_->ForceShutdown(); 294 child_process_host_->ForceShutdown();
290 } 295 }
291 296
292 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) { 297 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) {
293 child_process_->SetProcessBackgrounded(backgrounded); 298 child_process_->SetProcessBackgrounded(backgrounded);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 508
504 #if defined(OS_WIN) 509 #if defined(OS_WIN)
505 510
506 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { 511 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) {
507 OnChildDisconnected(); 512 OnChildDisconnected();
508 } 513 }
509 514
510 #endif 515 #endif
511 516
512 } // namespace content 517 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.h ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698