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

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

Issue 2501913002: Change the NaCl loader and broker processes to use the ServiceManager. (Closed)
Patch Set: rebase Created 3 years, 12 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 void BrowserChildProcessHostImpl::SetName(const base::string16& name) { 290 void BrowserChildProcessHostImpl::SetName(const base::string16& name) {
291 DCHECK_CURRENTLY_ON(BrowserThread::IO); 291 DCHECK_CURRENTLY_ON(BrowserThread::IO);
292 data_.name = name; 292 data_.name = name;
293 } 293 }
294 294
295 void BrowserChildProcessHostImpl::SetHandle(base::ProcessHandle handle) { 295 void BrowserChildProcessHostImpl::SetHandle(base::ProcessHandle handle) {
296 DCHECK_CURRENTLY_ON(BrowserThread::IO); 296 DCHECK_CURRENTLY_ON(BrowserThread::IO);
297 data_.handle = handle; 297 data_.handle = handle;
298 } 298 }
299 299
300 std::string BrowserChildProcessHostImpl::GetServiceRequestChannelToken() {
301 return child_connection_->service_token();
302 }
303
300 void BrowserChildProcessHostImpl::ForceShutdown() { 304 void BrowserChildProcessHostImpl::ForceShutdown() {
301 DCHECK_CURRENTLY_ON(BrowserThread::IO); 305 DCHECK_CURRENTLY_ON(BrowserThread::IO);
302 g_child_process_list.Get().remove(this); 306 g_child_process_list.Get().remove(this);
303 child_process_host_->ForceShutdown(); 307 child_process_host_->ForceShutdown();
304 } 308 }
305 309
306 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) { 310 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) {
307 child_process_->SetProcessBackgrounded(backgrounded); 311 child_process_->SetProcessBackgrounded(backgrounded);
308 } 312 }
309 313
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 602
599 #if defined(OS_WIN) 603 #if defined(OS_WIN)
600 604
601 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { 605 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) {
602 OnChildDisconnected(); 606 OnChildDisconnected();
603 } 607 }
604 608
605 #endif 609 #endif
606 610
607 } // namespace content 611 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.h ('k') | content/browser/service_manager/service_manager_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698