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

Side by Side Diff: mojo/shell/runner/host/in_process_native_runner.h

Issue 1722743002: Adds ability for chrome to behave as mojo_runner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to tip of tree Created 4 years, 9 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 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698