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 23 matching lines...) Expand all Loading... |
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 Loading... |
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 |
OLD | NEW |