| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 static void ForceNormalProcessTerminationAsync( | 153 static void ForceNormalProcessTerminationAsync( |
| 154 ChildProcessLauncherHelper::Process process); | 154 ChildProcessLauncherHelper::Process process); |
| 155 | 155 |
| 156 static void SetProcessBackgroundedOnLauncherThread( | 156 static void SetProcessBackgroundedOnLauncherThread( |
| 157 base::Process process, bool background); | 157 base::Process process, bool background); |
| 158 | 158 |
| 159 static void SetRegisteredFilesForService( | 159 static void SetRegisteredFilesForService( |
| 160 const std::string& service_name, | 160 const std::string& service_name, |
| 161 catalog::RequiredFileMap required_files); | 161 catalog::RequiredFileMap required_files); |
| 162 | 162 |
| 163 static void ResetRegisteredFilesForTesting(); |
| 164 |
| 163 private: | 165 private: |
| 164 friend class base::RefCountedThreadSafe<ChildProcessLauncherHelper>; | 166 friend class base::RefCountedThreadSafe<ChildProcessLauncherHelper>; |
| 165 | 167 |
| 166 ~ChildProcessLauncherHelper(); | 168 ~ChildProcessLauncherHelper(); |
| 167 | 169 |
| 168 void LaunchOnLauncherThread(); | 170 void LaunchOnLauncherThread(); |
| 169 | 171 |
| 170 const mojo::edk::PlatformHandle& mojo_client_handle() const { | 172 const mojo::edk::PlatformHandle& mojo_client_handle() const { |
| 171 return mojo_client_handle_.get(); | 173 return mojo_client_handle_.get(); |
| 172 } | 174 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 187 mojo::edk::ScopedPlatformHandle mojo_client_handle_; | 189 mojo::edk::ScopedPlatformHandle mojo_client_handle_; |
| 188 mojo::edk::ScopedPlatformHandle mojo_server_handle_; | 190 mojo::edk::ScopedPlatformHandle mojo_server_handle_; |
| 189 bool terminate_on_shutdown_; | 191 bool terminate_on_shutdown_; |
| 190 }; | 192 }; |
| 191 | 193 |
| 192 } // namespace internal | 194 } // namespace internal |
| 193 | 195 |
| 194 } // namespace content | 196 } // namespace content |
| 195 | 197 |
| 196 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ | 198 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ |
| OLD | NEW |