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

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

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
« no previous file with comments | « services/shell/runner/host/linux_sandbox.cc ('k') | services/shell/runner/host/mach_broker.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 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 #ifndef SERVICES_SHELL_RUNNER_HOST_MACH_BROKER_H_ 5 #ifndef SERVICES_SHELL_RUNNER_HOST_MACH_BROKER_H_
6 #define SERVICES_SHELL_RUNNER_HOST_MACH_BROKER_H_ 6 #define SERVICES_SHELL_RUNNER_HOST_MACH_BROKER_H_
7 7
8 #include "base/mac/mach_port_broker.h" 8 #include "base/mac/mach_port_broker.h"
9 9
10 namespace base { 10 namespace base {
11 template <typename T> struct DefaultSingletonTraits; 11 template <typename T> struct DefaultSingletonTraits;
12 } 12 }
13 13
14 namespace mojo {
15 namespace shell { 14 namespace shell {
16 15
17 // A global singleton |MachBroker| is used by the shell to provide access to 16 // A global singleton |MachBroker| is used by the shell to provide access to
18 // Mach task ports for shell out-of-process applications. 17 // Mach task ports for shell out-of-process applications.
19 class MachBroker { 18 class MachBroker {
20 public: 19 public:
21 // Sends the task port of the current process to the parent over Mach IPC. 20 // Sends the task port of the current process to the parent over Mach IPC.
22 // For use in child processes. 21 // For use in child processes.
23 static void SendTaskPortToParent(); 22 static void SendTaskPortToParent();
24 23
(...skipping 17 matching lines...) Expand all
42 41
43 private: 42 private:
44 MachBroker(); 43 MachBroker();
45 ~MachBroker(); 44 ~MachBroker();
46 friend struct base::DefaultSingletonTraits<MachBroker>; 45 friend struct base::DefaultSingletonTraits<MachBroker>;
47 46
48 base::MachPortBroker broker_; 47 base::MachPortBroker broker_;
49 }; 48 };
50 49
51 } // namespace shell 50 } // namespace shell
52 } // namespace mojo
53 51
54 #endif // SERVICES_SHELL_RUNNER_HOST_MACH_BROKER_H_ 52 #endif // SERVICES_SHELL_RUNNER_HOST_MACH_BROKER_H_
OLDNEW
« no previous file with comments | « services/shell/runner/host/linux_sandbox.cc ('k') | services/shell/runner/host/mach_broker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698