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

Side by Side Diff: services/shell/runner/host/child_process_host.h

Issue 2397353002: Purge references of "Mojo Application" from comments & var names. (Closed)
Patch Set: 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
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 SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ 5 #ifndef SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_
6 #define SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ 6 #define SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // 43 //
44 // Note: Does not currently work on Windows before Vista. 44 // Note: Does not currently work on Windows before Vista.
45 // Note: After |Start()|, |StartApp| must be called and this object must 45 // Note: After |Start()|, |StartApp| must be called and this object must
46 // remained alive until the |on_app_complete| callback is called. 46 // remained alive until the |on_app_complete| callback is called.
47 class ChildProcessHost { 47 class ChildProcessHost {
48 public: 48 public:
49 using ProcessReadyCallback = base::Callback<void(base::ProcessId)>; 49 using ProcessReadyCallback = base::Callback<void(base::ProcessId)>;
50 50
51 // |name| is just for debugging ease. We will spawn off a process so that it 51 // |name| is just for debugging ease. We will spawn off a process so that it
52 // can be sandboxed if |start_sandboxed| is true. |app_path| is a path to the 52 // can be sandboxed if |start_sandboxed| is true. |app_path| is a path to the
53 // mojo application we wish to start. 53 // service we wish to start.
54 ChildProcessHost(base::TaskRunner* launch_process_runner, 54 ChildProcessHost(base::TaskRunner* launch_process_runner,
55 NativeRunnerDelegate* delegate, 55 NativeRunnerDelegate* delegate,
56 bool start_sandboxed, 56 bool start_sandboxed,
57 const Identity& target, 57 const Identity& target,
58 const base::FilePath& app_path); 58 const base::FilePath& app_path);
59 virtual ~ChildProcessHost(); 59 virtual ~ChildProcessHost();
60 60
61 // |Start()|s the child process; calls |DidStart()| (on the thread on which 61 // |Start()|s the child process; calls |DidStart()| (on the thread on which
62 // |Start()| was called) when the child has been started (or failed to start). 62 // |Start()| was called) when the child has been started (or failed to start).
63 mojom::ServicePtr Start(const Identity& target, 63 mojom::ServicePtr Start(const Identity& target,
(...skipping 26 matching lines...) Expand all
90 base::WaitableEvent start_child_process_event_; 90 base::WaitableEvent start_child_process_event_;
91 91
92 base::WeakPtrFactory<ChildProcessHost> weak_factory_; 92 base::WeakPtrFactory<ChildProcessHost> weak_factory_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); 94 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost);
95 }; 95 };
96 96
97 } // namespace shell 97 } // namespace shell
98 98
99 #endif // SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_ 99 #endif // SERVICES_SHELL_RUNNER_HOST_CHILD_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « services/shell/runner/host/child_process_base.cc ('k') | services/shell/runner/host/in_process_native_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698