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

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

Issue 1679573002: Move shell interfaces into the shell.mojom namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
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<Application> application_request, 36 InterfaceRequest<mojom::Application> application_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(ScopedHandle channel, 39 void InitHost(
40 InterfaceRequest<Application> application_request) override; 40 ScopedHandle channel,
41 InterfaceRequest<mojom::Application> application_request) override;
41 42
42 private: 43 private:
43 // |ChildController::StartApp()| callback: 44 // |ChildController::StartApp()| callback:
44 void AppCompleted(int32_t result); 45 void AppCompleted(int32_t result);
45 46
46 // Callback run when the child process has launched. 47 // Callback run when the child process has launched.
47 void OnProcessLaunched( 48 void OnProcessLaunched(
48 InterfaceRequest<Application> application_request, 49 InterfaceRequest<mojom::Application> application_request,
49 const base::Callback<void(base::ProcessId)>& pid_available_callback, 50 const base::Callback<void(base::ProcessId)>& pid_available_callback,
50 base::ProcessId pid); 51 base::ProcessId pid);
51 52
52 base::TaskRunner* const launch_process_runner_; 53 base::TaskRunner* const launch_process_runner_;
53 54
54 base::FilePath app_path_; 55 base::FilePath app_path_;
55 base::Closure app_completed_callback_; 56 base::Closure app_completed_callback_;
56 57
57 scoped_ptr<ChildProcessHost> child_process_host_; 58 scoped_ptr<ChildProcessHost> child_process_host_;
58 59
(...skipping 12 matching lines...) Expand all
71 private: 72 private:
72 base::TaskRunner* const launch_process_runner_; 73 base::TaskRunner* const launch_process_runner_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunnerFactory); 75 DISALLOW_COPY_AND_ASSIGN(OutOfProcessNativeRunnerFactory);
75 }; 76 };
76 77
77 } // namespace shell 78 } // namespace shell
78 } // namespace mojo 79 } // namespace mojo
79 80
80 #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