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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 void BrowserChildProcessHostImpl::SetName(const base::string16& name) { | 298 void BrowserChildProcessHostImpl::SetName(const base::string16& name) { |
299 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 299 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
300 data_.name = name; | 300 data_.name = name; |
301 } | 301 } |
302 | 302 |
303 void BrowserChildProcessHostImpl::SetHandle(base::ProcessHandle handle) { | 303 void BrowserChildProcessHostImpl::SetHandle(base::ProcessHandle handle) { |
304 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 304 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
305 data_.handle = handle; | 305 data_.handle = handle; |
306 } | 306 } |
307 | 307 |
| 308 std::string BrowserChildProcessHostImpl::GetServiceRequestChannelToken() { |
| 309 return child_connection_->service_token(); |
| 310 } |
| 311 |
308 void BrowserChildProcessHostImpl::ForceShutdown() { | 312 void BrowserChildProcessHostImpl::ForceShutdown() { |
309 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 313 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
310 g_child_process_list.Get().remove(this); | 314 g_child_process_list.Get().remove(this); |
311 child_process_host_->ForceShutdown(); | 315 child_process_host_->ForceShutdown(); |
312 } | 316 } |
313 | 317 |
314 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) { | 318 void BrowserChildProcessHostImpl::SetBackgrounded(bool backgrounded) { |
315 child_process_->SetProcessBackgrounded(backgrounded); | 319 child_process_->SetProcessBackgrounded(backgrounded); |
316 } | 320 } |
317 | 321 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 | 610 |
607 #if defined(OS_WIN) | 611 #if defined(OS_WIN) |
608 | 612 |
609 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { | 613 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { |
610 OnChildDisconnected(); | 614 OnChildDisconnected(); |
611 } | 615 } |
612 | 616 |
613 #endif | 617 #endif |
614 | 618 |
615 } // namespace content | 619 } // namespace content |
OLD | NEW |