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_IN_PROCESS_NATIVE_RUNNER_H_ | 5 #ifndef MOJO_SHELL_RUNNER_HOST_IN_PROCESS_NATIVE_RUNNER_H_ |
6 #define MOJO_SHELL_RUNNER_HOST_IN_PROCESS_NATIVE_RUNNER_H_ | 6 #define MOJO_SHELL_RUNNER_HOST_IN_PROCESS_NATIVE_RUNNER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // file system) on a separate thread (in the current process). | 25 // file system) on a separate thread (in the current process). |
26 class InProcessNativeRunner : public NativeRunner, | 26 class InProcessNativeRunner : public NativeRunner, |
27 public base::DelegateSimpleThread::Delegate { | 27 public base::DelegateSimpleThread::Delegate { |
28 public: | 28 public: |
29 InProcessNativeRunner(); | 29 InProcessNativeRunner(); |
30 ~InProcessNativeRunner() override; | 30 ~InProcessNativeRunner() override; |
31 | 31 |
32 // NativeRunner: | 32 // NativeRunner: |
33 void Start( | 33 void Start( |
34 const base::FilePath& app_path, | 34 const base::FilePath& app_path, |
| 35 const Identity& target, |
35 bool start_sandboxed, | 36 bool start_sandboxed, |
36 InterfaceRequest<mojom::ShellClient> request, | 37 InterfaceRequest<mojom::ShellClient> request, |
37 const base::Callback<void(base::ProcessId)>& pid_available_callback, | 38 const base::Callback<void(base::ProcessId)>& pid_available_callback, |
38 const base::Closure& app_completed_callback) override; | 39 const base::Closure& app_completed_callback) override; |
39 void InitHost( | 40 void InitHost( |
40 ScopedHandle channel, | 41 ScopedHandle channel, |
41 InterfaceRequest<mojom::ShellClient> request) override; | 42 InterfaceRequest<mojom::ShellClient> request) override; |
42 | 43 |
43 private: | 44 private: |
44 // |base::DelegateSimpleThread::Delegate| method: | 45 // |base::DelegateSimpleThread::Delegate| method: |
(...skipping 20 matching lines...) Expand all Loading... |
65 private: | 66 private: |
66 base::TaskRunner* const launch_process_runner_; | 67 base::TaskRunner* const launch_process_runner_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunnerFactory); | 69 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunnerFactory); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace shell | 72 } // namespace shell |
72 } // namespace mojo | 73 } // namespace mojo |
73 | 74 |
74 #endif // MOJO_SHELL_RUNNER_HOST_IN_PROCESS_NATIVE_RUNNER_H_ | 75 #endif // MOJO_SHELL_RUNNER_HOST_IN_PROCESS_NATIVE_RUNNER_H_ |
OLD | NEW |