Chromium Code Reviews| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 163 static void SetRegisteredFilesForService( | 163 static void SetRegisteredFilesForService( |
| 164 const std::string& service_name, | 164 const std::string& service_name, |
| 165 catalog::RequiredFileMap required_files); | 165 catalog::RequiredFileMap required_files); |
| 166 | 166 |
| 167 static void ResetRegisteredFilesForTesting(); | 167 static void ResetRegisteredFilesForTesting(); |
| 168 | 168 |
| 169 #if defined(OS_ANDROID) | 169 #if defined(OS_ANDROID) |
| 170 void OnChildProcessStarted(JNIEnv* env, | 170 void OnChildProcessStarted(JNIEnv* env, |
| 171 const base::android::JavaParamRef<jobject>& obj, | 171 const base::android::JavaParamRef<jobject>& obj, |
| 172 jint handle); | 172 jint handle); |
| 173 static size_t GetNumberOfRendererSlots(); | |
|
Jay Civelli
2017/04/03 16:19:48
I am starting to get weary of adding more stuff in
boliu
2017/04/03 16:33:03
I suppose this doesn't have to go through CPL. RPH
Jay Civelli
2017/04/03 16:40:50
That's fine for now.
| |
| 173 #endif // OS_ANDROID | 174 #endif // OS_ANDROID |
| 174 | 175 |
| 175 private: | 176 private: |
| 176 friend class base::RefCountedThreadSafe<ChildProcessLauncherHelper>; | 177 friend class base::RefCountedThreadSafe<ChildProcessLauncherHelper>; |
| 177 | 178 |
| 178 ~ChildProcessLauncherHelper(); | 179 ~ChildProcessLauncherHelper(); |
| 179 | 180 |
| 180 void LaunchOnLauncherThread(); | 181 void LaunchOnLauncherThread(); |
| 181 | 182 |
| 182 const mojo::edk::PlatformHandle& mojo_client_handle() const { | 183 const mojo::edk::PlatformHandle& mojo_client_handle() const { |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 203 #if defined(OS_ANDROID) | 204 #if defined(OS_ANDROID) |
| 204 base::android::ScopedJavaGlobalRef<jobject> java_peer_; | 205 base::android::ScopedJavaGlobalRef<jobject> java_peer_; |
| 205 #endif | 206 #endif |
| 206 }; | 207 }; |
| 207 | 208 |
| 208 } // namespace internal | 209 } // namespace internal |
| 209 | 210 |
| 210 } // namespace content | 211 } // namespace content |
| 211 | 212 |
| 212 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ | 213 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ |
| OLD | NEW |