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

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

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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
OLDNEW
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_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 5 #ifndef SERVICES_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_
6 #define SERVICES_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 6 #define SERVICES_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 15 matching lines...) Expand all
26 26
27 // An implementation of |NativeRunner| that loads/runs the given app (from the 27 // An implementation of |NativeRunner| that loads/runs the given app (from the
28 // file system) in a separate process (of its own). 28 // file system) in a separate process (of its own).
29 class OutOfProcessNativeRunner : public NativeRunner { 29 class OutOfProcessNativeRunner : public NativeRunner {
30 public: 30 public:
31 OutOfProcessNativeRunner(base::TaskRunner* launch_process_runner, 31 OutOfProcessNativeRunner(base::TaskRunner* launch_process_runner,
32 NativeRunnerDelegate* delegate); 32 NativeRunnerDelegate* delegate);
33 ~OutOfProcessNativeRunner() override; 33 ~OutOfProcessNativeRunner() override;
34 34
35 // NativeRunner: 35 // NativeRunner:
36 mojom::ShellClientPtr Start( 36 mojom::ServicePtr Start(
37 const base::FilePath& app_path, 37 const base::FilePath& app_path,
38 const Identity& identity, 38 const Identity& identity,
39 bool start_sandboxed, 39 bool start_sandboxed,
40 const base::Callback<void(base::ProcessId)>& pid_available_callback, 40 const base::Callback<void(base::ProcessId)>& pid_available_callback,
41 const base::Closure& app_completed_callback) override; 41 const base::Closure& app_completed_callback) override;
42 42
43 private: 43 private:
44 void AppCompleted(); 44 void AppCompleted();
45 45
46 base::TaskRunner* const launch_process_runner_; 46 base::TaskRunner* const launch_process_runner_;
(...skipping 18 matching lines...) Expand all
65 private: 65 private:
66 base::TaskRunner* const launch_process_runner_; 66 base::TaskRunner* const launch_process_runner_;
67 NativeRunnerDelegate* delegate_; 67 NativeRunnerDelegate* delegate_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunnerFactory); 69 DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunnerFactory);
70 }; 70 };
71 71
72 } // namespace shell 72 } // namespace shell
73 73
74 #endif // SERVICES_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 74 #endif // SERVICES_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_
OLDNEW
« no previous file with comments | « services/shell/runner/host/native_application_support.cc ('k') | services/shell/runner/host/out_of_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698