OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ |
6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ | 6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 int* launch_result); | 115 int* launch_result); |
116 | 116 |
117 // Called right after the process has been launched, whether it was created | 117 // Called right after the process has been launched, whether it was created |
118 // yet or not. | 118 // yet or not. |
119 // Platform specific. | 119 // Platform specific. |
120 void AfterLaunchOnLauncherThread( | 120 void AfterLaunchOnLauncherThread( |
121 const ChildProcessLauncherHelper::Process& process, | 121 const ChildProcessLauncherHelper::Process& process, |
122 const base::LaunchOptions& options); | 122 const base::LaunchOptions& options); |
123 | 123 |
124 // Called once the process has been created, successfully or not. | 124 // Called once the process has been created, successfully or not. |
125 // If |post_launch_on_client_thread_called| is false, | 125 // If |post_launch_on_client_thread_called| is false, |
Jay Civelli
2017/04/26 18:29:29
Remove this part of the comment.
boliu
2017/04/26 18:32:21
Oops, done
| |
126 // this calls PostLaunchOnClientThread on the client thread. | 126 // this calls PostLaunchOnClientThread on the client thread. |
127 void PostLaunchOnLauncherThread(ChildProcessLauncherHelper::Process process, | 127 void PostLaunchOnLauncherThread(ChildProcessLauncherHelper::Process process, |
128 int launch_result, | 128 int launch_result); |
129 bool post_launch_on_client_thread_called); | |
130 | 129 |
131 // Note that this could be called before PostLaunchOnLauncherThread() is | 130 // Posted by PostLaunchOnLauncherThread onto the client thread. |
132 // called. | |
133 void PostLaunchOnClientThread(ChildProcessLauncherHelper::Process process, | 131 void PostLaunchOnClientThread(ChildProcessLauncherHelper::Process process, |
134 int error_code); | 132 int error_code); |
135 | 133 |
136 int client_thread_id() const { return client_thread_id_; } | 134 int client_thread_id() const { return client_thread_id_; } |
137 | 135 |
138 // Returns the termination status and sets |exit_code| if non null. | 136 // Returns the termination status and sets |exit_code| if non null. |
139 // See ChildProcessLauncher::GetChildTerminationStatus for more info. | 137 // See ChildProcessLauncher::GetChildTerminationStatus for more info. |
140 base::TerminationStatus GetTerminationStatus( | 138 base::TerminationStatus GetTerminationStatus( |
141 const ChildProcessLauncherHelper::Process& process, | 139 const ChildProcessLauncherHelper::Process& process, |
142 bool known_dead, | 140 bool known_dead, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
204 #if defined(OS_ANDROID) | 202 #if defined(OS_ANDROID) |
205 base::android::ScopedJavaGlobalRef<jobject> java_peer_; | 203 base::android::ScopedJavaGlobalRef<jobject> java_peer_; |
206 #endif | 204 #endif |
207 }; | 205 }; |
208 | 206 |
209 } // namespace internal | 207 } // namespace internal |
210 | 208 |
211 } // namespace content | 209 } // namespace content |
212 | 210 |
213 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ | 211 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ |
OLD | NEW |