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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |