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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 shell::InterfaceRegistry* BrowserChildProcessHostImpl::GetInterfaceRegistry() { | |
282 DCHECK_CURRENTLY_ON(BrowserThread::IO); | |
283 return delegate_->GetInterfaceRegistry(); | |
284 } | |
285 | |
286 shell::InterfaceProvider* BrowserChildProcessHostImpl::GetRemoteInterfaces() { | 281 shell::InterfaceProvider* BrowserChildProcessHostImpl::GetRemoteInterfaces() { |
287 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 282 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
288 return delegate_->GetRemoteInterfaces(); | 283 return delegate_->GetRemoteInterfaces(); |
289 } | 284 } |
290 | 285 |
291 void BrowserChildProcessHostImpl::ForceShutdown() { | 286 void BrowserChildProcessHostImpl::ForceShutdown() { |
292 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 287 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
293 g_child_process_list.Get().remove(this); | 288 g_child_process_list.Get().remove(this); |
294 child_process_host_->ForceShutdown(); | 289 child_process_host_->ForceShutdown(); |
295 } | 290 } |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 503 |
509 #if defined(OS_WIN) | 504 #if defined(OS_WIN) |
510 | 505 |
511 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { | 506 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { |
512 OnChildDisconnected(); | 507 OnChildDisconnected(); |
513 } | 508 } |
514 | 509 |
515 #endif | 510 #endif |
516 | 511 |
517 } // namespace content | 512 } // namespace content |
OLD | NEW |