Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 616 // render process. This ensures that when a test is being run in one of the | 616 // render process. This ensures that when a test is being run in one of the |
| 617 // single process modes, the global attachment broker is the privileged | 617 // single process modes, the global attachment broker is the privileged |
| 618 // attachment broker, rather than an unprivileged attachment broker. | 618 // attachment broker, rather than an unprivileged attachment broker. |
| 619 #if defined(OS_MACOSX) && !defined(OS_IOS) | 619 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 620 IPC::AttachmentBrokerPrivileged::CreateBrokerIfNeeded( | 620 IPC::AttachmentBrokerPrivileged::CreateBrokerIfNeeded( |
| 621 MachBroker::GetInstance()); | 621 MachBroker::GetInstance()); |
| 622 #else | 622 #else |
| 623 IPC::AttachmentBrokerPrivileged::CreateBrokerIfNeeded(); | 623 IPC::AttachmentBrokerPrivileged::CreateBrokerIfNeeded(); |
| 624 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | 624 #endif // defined(OS_MACOSX) && !defined(OS_IOS) |
| 625 #endif // USE_ATTACHMENT_BROKER | 625 #endif // USE_ATTACHMENT_BROKER |
| 626 #if defined(OS_MACOSX) && !defined(OS_IOS) | |
| 627 mojo::edk::SetMachPortProviderIfNeeded(MachBroker::GetInstance()); | |
|
Ken Rockot(use gerrit already)
2016/03/09 08:34:31
I'm confused about why this (and really the Attach
erikchen
2016/03/09 19:13:16
That would be cleaner.
Right now, we actually cal
Anand Mistry (off Chromium)
2016/03/11 07:44:17
I agree, but think it's outside the scope of this
| |
| 628 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | |
| 626 } | 629 } |
| 627 | 630 |
| 628 // static | 631 // static |
| 629 void RenderProcessHostImpl::ShutDownInProcessRenderer() { | 632 void RenderProcessHostImpl::ShutDownInProcessRenderer() { |
| 630 DCHECK(g_run_renderer_in_process_); | 633 DCHECK(g_run_renderer_in_process_); |
| 631 | 634 |
| 632 switch (g_all_hosts.Pointer()->size()) { | 635 switch (g_all_hosts.Pointer()->size()) { |
| 633 case 0: | 636 case 0: |
| 634 return; | 637 return; |
| 635 case 1: { | 638 case 1: { |
| (...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2809 | 2812 |
| 2810 // Skip widgets in other processes. | 2813 // Skip widgets in other processes. |
| 2811 if (rvh->GetProcess()->GetID() != GetID()) | 2814 if (rvh->GetProcess()->GetID() != GetID()) |
| 2812 continue; | 2815 continue; |
| 2813 | 2816 |
| 2814 rvh->OnWebkitPreferencesChanged(); | 2817 rvh->OnWebkitPreferencesChanged(); |
| 2815 } | 2818 } |
| 2816 } | 2819 } |
| 2817 | 2820 |
| 2818 } // namespace content | 2821 } // namespace content |
| OLD | NEW |