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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1712143002: [mojo-edk] Add support for transferring mach ports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More stuff. Created 4 years, 9 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
« no previous file with comments | « no previous file | mojo/edk/embedder/embedder.h » ('j') | mojo/edk/embedder/embedder.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/embedder/embedder.h » ('j') | mojo/edk/embedder/embedder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698