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 #include "content/browser/child_process_launcher_helper_android.h" | 5 #include "content/browser/child_process_launcher_helper_android.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/android/apk_assets.h" | 9 #include "base/android/apk_assets.h" |
10 #include "base/android/context_utils.h" | 10 #include "base/android/context_utils.h" |
11 #include "base/android/jni_array.h" | 11 #include "base/android/jni_array.h" |
12 #include "base/i18n/icu_util.h" | 12 #include "base/i18n/icu_util.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/metrics/field_trial.h" | 14 #include "base/metrics/field_trial.h" |
15 #include "content/browser/child_process_launcher_helper.h" | 15 #include "content/browser/child_process_launcher_helper.h" |
16 #include "content/browser/child_process_launcher_helper_posix.h" | 16 #include "content/browser/child_process_launcher_helper_posix.h" |
17 #include "content/browser/file_descriptor_info_impl.h" | 17 #include "content/browser/file_descriptor_info_impl.h" |
18 #include "content/browser/web_contents/web_contents_impl.h" | 18 #include "content/browser/web_contents/web_contents_impl.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/browser/render_process_host.h" | 20 #include "content/public/browser/render_process_host.h" |
21 #include "content/public/common/content_descriptors.h" | 21 #include "content/public/common/content_descriptors.h" |
22 #include "content/public/common/content_switches.h" | 22 #include "content/public/common/content_switches.h" |
23 #include "gin/v8_initializer.h" | |
24 #include "jni/ChildProcessLauncherHelper_jni.h" | 23 #include "jni/ChildProcessLauncherHelper_jni.h" |
25 | 24 |
26 using base::android::AttachCurrentThread; | 25 using base::android::AttachCurrentThread; |
27 using base::android::JavaParamRef; | 26 using base::android::JavaParamRef; |
28 using base::android::ScopedJavaGlobalRef; | 27 using base::android::ScopedJavaGlobalRef; |
29 using base::android::ScopedJavaLocalRef; | 28 using base::android::ScopedJavaLocalRef; |
30 using base::android::ToJavaArrayOfStrings; | 29 using base::android::ToJavaArrayOfStrings; |
31 | 30 |
32 namespace content { | 31 namespace content { |
33 namespace internal { | 32 namespace internal { |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 AttachCurrentThread())); | 245 AttachCurrentThread())); |
247 } | 246 } |
248 | 247 |
249 } // namespace internal | 248 } // namespace internal |
250 | 249 |
251 bool RegisterChildProcessLauncher(JNIEnv* env) { | 250 bool RegisterChildProcessLauncher(JNIEnv* env) { |
252 return internal::RegisterNativesImpl(env); | 251 return internal::RegisterNativesImpl(env); |
253 } | 252 } |
254 | 253 |
255 } // namespace content | 254 } // namespace content |
OLD | NEW |