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

Side by Side Diff: services/shell/native_runner.h

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « services/shell/manifest.json ('k') | services/shell/native_runner_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_SHELL_NATIVE_RUNNER_H_
6 #define SERVICES_SHELL_NATIVE_RUNNER_H_
7
8 #include <memory>
9
10 #include "base/callback_forward.h"
11 #include "base/process/process_handle.h"
12 #include "mojo/public/cpp/bindings/interface_request.h"
13 #include "services/shell/public/interfaces/service.mojom.h"
14
15 namespace base {
16 class FilePath;
17 }
18
19 namespace shell {
20 class Identity;
21
22 // Shell requires implementations of NativeRunner and NativeRunnerFactory to run
23 // native applications.
24 class NativeRunner {
25 public:
26 virtual ~NativeRunner() {}
27
28 // Loads the app in the file at |app_path| and runs it on some other
29 // thread/process. Returns a Service handle the shell can use to connect
30 // to the the app.
31 virtual mojom::ServicePtr Start(
32 const base::FilePath& app_path,
33 const Identity& target,
34 bool start_sandboxed,
35 const base::Callback<void(base::ProcessId)>& pid_available_callback,
36 const base::Closure& app_completed_callback) = 0;
37 };
38
39 class NativeRunnerFactory {
40 public:
41 virtual ~NativeRunnerFactory() {}
42 virtual std::unique_ptr<NativeRunner> Create(
43 const base::FilePath& app_path) = 0;
44 };
45
46 } // namespace shell
47
48 #endif // SERVICES_SHELL_NATIVE_RUNNER_H_
OLDNEW
« no previous file with comments | « services/shell/manifest.json ('k') | services/shell/native_runner_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698