| 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, | |
| 126 // this calls PostLaunchOnClientThread on the client thread. | |
| 127 void PostLaunchOnLauncherThread(ChildProcessLauncherHelper::Process process, | 125 void PostLaunchOnLauncherThread(ChildProcessLauncherHelper::Process process, |
| 128 int launch_result, | 126 int launch_result); |
| 129 bool post_launch_on_client_thread_called); | |
| 130 | 127 |
| 131 // Note that this could be called before PostLaunchOnLauncherThread() is | 128 // Posted by PostLaunchOnLauncherThread onto the client thread. |
| 132 // called. | |
| 133 void PostLaunchOnClientThread(ChildProcessLauncherHelper::Process process, | 129 void PostLaunchOnClientThread(ChildProcessLauncherHelper::Process process, |
| 134 int error_code); | 130 int error_code); |
| 135 | 131 |
| 136 int client_thread_id() const { return client_thread_id_; } | 132 int client_thread_id() const { return client_thread_id_; } |
| 137 | 133 |
| 138 // Returns the termination status and sets |exit_code| if non null. | 134 // Returns the termination status and sets |exit_code| if non null. |
| 139 // See ChildProcessLauncher::GetChildTerminationStatus for more info. | 135 // See ChildProcessLauncher::GetChildTerminationStatus for more info. |
| 140 base::TerminationStatus GetTerminationStatus( | 136 base::TerminationStatus GetTerminationStatus( |
| 141 const ChildProcessLauncherHelper::Process& process, | 137 const ChildProcessLauncherHelper::Process& process, |
| 142 bool known_dead, | 138 bool known_dead, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 #if defined(OS_ANDROID) | 200 #if defined(OS_ANDROID) |
| 205 base::android::ScopedJavaGlobalRef<jobject> java_peer_; | 201 base::android::ScopedJavaGlobalRef<jobject> java_peer_; |
| 206 #endif | 202 #endif |
| 207 }; | 203 }; |
| 208 | 204 |
| 209 } // namespace internal | 205 } // namespace internal |
| 210 | 206 |
| 211 } // namespace content | 207 } // namespace content |
| 212 | 208 |
| 213 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ | 209 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ |
| OLD | NEW |