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_APP_CHILD_PROCESS_H_ | 5 #ifndef SHELL_APP_CHILD_PROCESS_H_ |
6 #define MOJO_SHELL_APP_CHILD_PROCESS_H_ | 6 #define SHELL_APP_CHILD_PROCESS_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "mojo/shell/child_process.h" | 9 #include "shell/child_process.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 namespace shell { | 12 namespace shell { |
13 | 13 |
14 // An implementation of |ChildProcess| for a |TYPE_APP| child process, which | 14 // An implementation of |ChildProcess| for a |TYPE_APP| child process, which |
15 // runs a single app (loaded from the file system) on its main thread. | 15 // runs a single app (loaded from the file system) on its main thread. |
16 class AppChildProcess : public ChildProcess { | 16 class AppChildProcess : public ChildProcess { |
17 public: | 17 public: |
18 AppChildProcess(); | 18 AppChildProcess(); |
19 ~AppChildProcess() override; | 19 ~AppChildProcess() override; |
20 | 20 |
21 void Main() override; | 21 void Main() override; |
22 | 22 |
23 private: | 23 private: |
24 DISALLOW_COPY_AND_ASSIGN(AppChildProcess); | 24 DISALLOW_COPY_AND_ASSIGN(AppChildProcess); |
25 }; | 25 }; |
26 | 26 |
27 } // namespace shell | 27 } // namespace shell |
28 } // namespace mojo | 28 } // namespace mojo |
29 | 29 |
30 #endif // MOJO_SHELL_APP_CHILD_PROCESS_H_ | 30 #endif // SHELL_APP_CHILD_PROCESS_H_ |
OLD | NEW |