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

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

Issue 1761153002: Replace ChildController with ShellClientFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@29binding
Patch Set: . 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 20 matching lines...) Expand all
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 const Identity& target,
36 bool start_sandboxed, 36 bool start_sandboxed,
37 InterfaceRequest<mojom::ShellClient> request, 37 InterfaceRequest<mojom::ShellClient> request,
38 const base::Callback<void(base::ProcessId)>& pid_available_callback, 38 const base::Callback<void(base::ProcessId)>& pid_available_callback,
39 const base::Closure& app_completed_callback) override; 39 const base::Closure& app_completed_callback) override;
40 void InitHost( 40 void InitHost(
41 ScopedHandle channel, 41 mojom::ShellClientFactoryPtr factory,
42 const String& name,
42 InterfaceRequest<mojom::ShellClient> request) override; 43 InterfaceRequest<mojom::ShellClient> request) override;
43 44
44 private: 45 private:
45 // |base::DelegateSimpleThread::Delegate| method: 46 // |base::DelegateSimpleThread::Delegate| method:
46 void Run() override; 47 void Run() override;
47 48
48 base::FilePath app_path_; 49 base::FilePath app_path_;
49 InterfaceRequest<mojom::ShellClient> request_; 50 InterfaceRequest<mojom::ShellClient> request_;
50 base::Callback<bool(void)> app_completed_callback_runner_; 51 base::Callback<bool(void)> app_completed_callback_runner_;
51 52
(...skipping 14 matching lines...) Expand all
66 private: 67 private:
67 base::TaskRunner* const launch_process_runner_; 68 base::TaskRunner* const launch_process_runner_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunnerFactory); 70 DISALLOW_COPY_AND_ASSIGN(InProcessNativeRunnerFactory);
70 }; 71 };
71 72
72 } // namespace shell 73 } // namespace shell
73 } // namespace mojo 74 } // namespace mojo
74 75
75 #endif // MOJO_SHELL_RUNNER_HOST_IN_PROCESS_NATIVE_RUNNER_H_ 76 #endif // MOJO_SHELL_RUNNER_HOST_IN_PROCESS_NATIVE_RUNNER_H_
OLDNEW
« no previous file with comments | « mojo/shell/runner/host/child_process_host_unittest.cc ('k') | mojo/shell/runner/host/in_process_native_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698