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

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

Issue 1675153002: ApplicationImpl->ShellConnection, mojom::Application->mojom::ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ci2
Patch Set: . Created 4 years, 10 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_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 5 #ifndef MOJO_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_
6 #define MOJO_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 6 #define MOJO_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 15 matching lines...) Expand all
26 // file system) in a separate process (of its own). 26 // file system) in a separate process (of its own).
27 class OutOfProcessNativeRunner : public NativeRunner { 27 class OutOfProcessNativeRunner : public NativeRunner {
28 public: 28 public:
29 explicit OutOfProcessNativeRunner(base::TaskRunner* launch_process_runner); 29 explicit OutOfProcessNativeRunner(base::TaskRunner* launch_process_runner);
30 ~OutOfProcessNativeRunner() override; 30 ~OutOfProcessNativeRunner() 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 bool start_sandboxed, 35 bool start_sandboxed,
36 InterfaceRequest<mojom::Application> application_request, 36 InterfaceRequest<mojom::ShellClient> request,
37 const base::Callback<void(base::ProcessId)>& pid_available_callback, 37 const base::Callback<void(base::ProcessId)>& pid_available_callback,
38 const base::Closure& app_completed_callback) override; 38 const base::Closure& app_completed_callback) override;
39 void InitHost( 39 void InitHost(
40 ScopedHandle channel, 40 ScopedHandle channel,
41 InterfaceRequest<mojom::Application> application_request) override; 41 InterfaceRequest<mojom::ShellClient> request) override;
42 42
43 private: 43 private:
44 // |ChildController::StartApp()| callback: 44 // |ChildController::StartApp()| callback:
45 void AppCompleted(int32_t result); 45 void AppCompleted(int32_t result);
46 46
47 // Callback run when the child process has launched. 47 // Callback run when the child process has launched.
48 void OnProcessLaunched( 48 void OnProcessLaunched(
49 InterfaceRequest<mojom::Application> application_request, 49 InterfaceRequest<mojom::ShellClient> request,
50 const base::Callback<void(base::ProcessId)>& pid_available_callback, 50 const base::Callback<void(base::ProcessId)>& pid_available_callback,
51 base::ProcessId pid); 51 base::ProcessId pid);
52 52
53 base::TaskRunner* const launch_process_runner_; 53 base::TaskRunner* const launch_process_runner_;
54 54
55 base::FilePath app_path_; 55 base::FilePath app_path_;
56 base::Closure app_completed_callback_; 56 base::Closure app_completed_callback_;
57 57
58 scoped_ptr<ChildProcessHost> child_process_host_; 58 scoped_ptr<ChildProcessHost> child_process_host_;
59 59
(...skipping 12 matching lines...) Expand all
72 private: 72 private:
73 base::TaskRunner* const launch_process_runner_; 73 base::TaskRunner* const launch_process_runner_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunnerFactory); 75 DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunnerFactory);
76 }; 76 };
77 77
78 } // namespace shell 78 } // namespace shell
79 } // namespace mojo 79 } // namespace mojo
80 80
81 #endif // MOJO_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_ 81 #endif // MOJO_SHELL_RUNNER_HOST_OUT_OF_PROCESS_NATIVE_RUNNER_H_
OLDNEW
« no previous file with comments | « mojo/shell/runner/host/native_application_support.cc ('k') | mojo/shell/runner/host/out_of_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698