OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/shell/runner/host/mach_broker.h" | 5 #include "services/shell/runner/host/mach_broker.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 | 9 |
10 namespace mojo { | |
11 namespace shell { | 10 namespace shell { |
12 | 11 |
13 namespace { | 12 namespace { |
14 const char kBootstrapPortName[] = "mojo_shell"; | 13 const char kBootstrapPortName[] = "mojo_shell"; |
15 } | 14 } |
16 | 15 |
17 // static | 16 // static |
18 void MachBroker::SendTaskPortToParent() { | 17 void MachBroker::SendTaskPortToParent() { |
19 bool result = base::MachPortBroker::ChildSendTaskPortToParent( | 18 bool result = base::MachPortBroker::ChildSendTaskPortToParent( |
20 kBootstrapPortName); | 19 kBootstrapPortName); |
(...skipping 14 matching lines...) Expand all Loading... |
35 | 34 |
36 void MachBroker::ExpectPid(base::ProcessHandle pid) { | 35 void MachBroker::ExpectPid(base::ProcessHandle pid) { |
37 broker_.AddPlaceholderForPid(pid); | 36 broker_.AddPlaceholderForPid(pid); |
38 } | 37 } |
39 | 38 |
40 void MachBroker::RemovePid(base::ProcessHandle pid) { | 39 void MachBroker::RemovePid(base::ProcessHandle pid) { |
41 broker_.InvalidatePid(pid); | 40 broker_.InvalidatePid(pid); |
42 } | 41 } |
43 | 42 |
44 } // namespace shell | 43 } // namespace shell |
45 } // namespace mojo | |
OLD | NEW |