OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ | 5 #ifndef MOJO_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ |
6 #define MOJO_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ | 6 #define MOJO_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/process/process.h" | 17 #include "base/process/process.h" |
18 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
19 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
20 #include "mojo/edk/embedder/platform_channel_pair.h" | 20 #include "mojo/edk/embedder/platform_channel_pair.h" |
21 #include "mojo/public/cpp/system/message_pipe.h" | 21 #include "mojo/public/cpp/system/message_pipe.h" |
22 #include "mojo/shell/identity.h" | 22 #include "mojo/shell/public/cpp/identity.h" |
23 #include "mojo/shell/public/interfaces/shell_client_factory.mojom.h" | 23 #include "mojo/shell/public/interfaces/shell_client_factory.mojom.h" |
24 #include "mojo/shell/runner/host/child_process_host.h" | 24 #include "mojo/shell/runner/host/child_process_host.h" |
25 | 25 |
26 namespace base { | 26 namespace base { |
27 class TaskRunner; | 27 class TaskRunner; |
28 } | 28 } |
29 | 29 |
30 namespace mojo { | 30 namespace mojo { |
| 31 class Identity; |
31 namespace shell { | 32 namespace shell { |
32 | 33 |
33 class Identity; | |
34 class NativeRunnerDelegate; | 34 class NativeRunnerDelegate; |
35 | 35 |
36 // This class represents a "child process host". Handles launching and | 36 // This class represents a "child process host". Handles launching and |
37 // connecting a platform-specific "pipe" to the child, and supports joining the | 37 // connecting a platform-specific "pipe" to the child, and supports joining the |
38 // child process. Currently runs a single app (loaded from the file system). | 38 // child process. Currently runs a single app (loaded from the file system). |
39 // | 39 // |
40 // This class is not thread-safe. It should be created/used/destroyed on a | 40 // This class is not thread-safe. It should be created/used/destroyed on a |
41 // single thread. | 41 // single thread. |
42 // | 42 // |
43 // Note: Does not currently work on Windows before Vista. | 43 // Note: Does not currently work on Windows before Vista. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 96 |
97 base::WeakPtrFactory<ChildProcessHost> weak_factory_; | 97 base::WeakPtrFactory<ChildProcessHost> weak_factory_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); | 99 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace shell | 102 } // namespace shell |
103 } // namespace mojo | 103 } // namespace mojo |
104 | 104 |
105 #endif // MOJO_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ | 105 #endif // MOJO_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ |
OLD | NEW |