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

Side by Side Diff: content/browser/browser_child_process_host_impl.cc

Issue 1738663002: Hook embedded shell up to MojoShellConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/browser/BUILD.gn ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 23 matching lines...) Expand all
34 #include "content/public/common/process_type.h" 34 #include "content/public/common/process_type.h"
35 #include "content/public/common/result_codes.h" 35 #include "content/public/common/result_codes.h"
36 #include "ipc/attachment_broker.h" 36 #include "ipc/attachment_broker.h"
37 #include "ipc/attachment_broker_privileged.h" 37 #include "ipc/attachment_broker_privileged.h"
38 #include "mojo/edk/embedder/embedder.h" 38 #include "mojo/edk/embedder/embedder.h"
39 39
40 #if defined(OS_MACOSX) 40 #if defined(OS_MACOSX)
41 #include "content/browser/mach_broker_mac.h" 41 #include "content/browser/mach_broker_mac.h"
42 #endif 42 #endif
43 43
44
45 #if defined(MOJO_SHELL_CLIENT)
46 #include "content/browser/mojo/mojo_shell_client_host.h"
47 #include "content/common/mojo/mojo_shell_connection_impl.h"
48 #endif
49
50 namespace content { 44 namespace content {
51 namespace { 45 namespace {
52 46
53 static base::LazyInstance<BrowserChildProcessHostImpl::BrowserChildProcessList> 47 static base::LazyInstance<BrowserChildProcessHostImpl::BrowserChildProcessList>
54 g_child_process_list = LAZY_INSTANCE_INITIALIZER; 48 g_child_process_list = LAZY_INSTANCE_INITIALIZER;
55 49
56 base::LazyInstance<base::ObserverList<BrowserChildProcessObserver>> 50 base::LazyInstance<base::ObserverList<BrowserChildProcessObserver>>
57 g_observers = LAZY_INSTANCE_INITIALIZER; 51 g_observers = LAZY_INSTANCE_INITIALIZER;
58 52
59 void NotifyProcessLaunchedAndConnected(const ChildProcessData& data) { 53 void NotifyProcessLaunchedAndConnected(const ChildProcessData& data) {
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 440
447 #if defined(OS_WIN) 441 #if defined(OS_WIN)
448 442
449 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { 443 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) {
450 OnChildDisconnected(); 444 OnChildDisconnected();
451 } 445 }
452 446
453 #endif 447 #endif
454 448
455 } // namespace content 449 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698