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 SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_RUNNER_HOST_CHILD_PROCESS_HOST_H_ |
6 #define SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ | 6 #define SERVICES_SERVICE_MANAGER_RUNNER_HOST_CHILD_PROCESS_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/process/process.h" | 19 #include "base/process/process.h" |
20 #include "base/synchronization/lock.h" | 20 #include "base/synchronization/lock.h" |
21 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
22 #include "mojo/edk/embedder/platform_channel_pair.h" | 22 #include "mojo/edk/embedder/platform_channel_pair.h" |
23 #include "mojo/public/cpp/system/message_pipe.h" | 23 #include "mojo/public/cpp/system/message_pipe.h" |
24 #include "services/shell/public/cpp/identity.h" | 24 #include "services/service_manager/public/cpp/identity.h" |
25 #include "services/shell/public/interfaces/service_factory.mojom.h" | 25 #include "services/service_manager/public/interfaces/service_factory.mojom.h" |
26 #include "services/shell/runner/host/child_process_host.h" | 26 #include "services/service_manager/runner/host/child_process_host.h" |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 class TaskRunner; | 29 class TaskRunner; |
30 } | 30 } |
31 | 31 |
32 namespace shell { | 32 namespace shell { |
33 | 33 |
34 class Identity; | 34 class Identity; |
35 class NativeRunnerDelegate; | 35 class NativeRunnerDelegate; |
36 | 36 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // the main thread if it tries to destruct |this| while launching the process. | 89 // the main thread if it tries to destruct |this| while launching the process. |
90 base::WaitableEvent start_child_process_event_; | 90 base::WaitableEvent start_child_process_event_; |
91 | 91 |
92 base::WeakPtrFactory<ChildProcessHost> weak_factory_; | 92 base::WeakPtrFactory<ChildProcessHost> weak_factory_; |
93 | 93 |
94 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); | 94 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace shell | 97 } // namespace shell |
98 | 98 |
99 #endif // SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ | 99 #endif // SERVICES_SERVICE_MANAGER_RUNNER_HOST_CHILD_PROCESS_HOST_H_ |
OLD | NEW |