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

Side by Side Diff: services/shell/runner/host/mach_broker.cc

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/shell/runner/host/mach_broker.h ('k') | services/shell/runner/host/native_application_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698