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 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.os.ParcelFileDescriptor; | 8 import android.os.ParcelFileDescriptor; |
9 | 9 |
10 import org.chromium.base.ContextUtils; | 10 import org.chromium.base.ContextUtils; |
11 import org.chromium.base.Log; | 11 import org.chromium.base.Log; |
12 import org.chromium.base.annotations.CalledByNative; | 12 import org.chromium.base.annotations.CalledByNative; |
13 import org.chromium.base.annotations.JNINamespace; | 13 import org.chromium.base.annotations.JNINamespace; |
| 14 import org.chromium.base.process_launcher.BaseChildProcessConnection; |
14 import org.chromium.base.process_launcher.ChildProcessCreationParams; | 15 import org.chromium.base.process_launcher.ChildProcessCreationParams; |
15 import org.chromium.base.process_launcher.FileDescriptorInfo; | 16 import org.chromium.base.process_launcher.FileDescriptorInfo; |
| 17 import org.chromium.base.process_launcher.ImportantChildProcessConnection; |
| 18 import org.chromium.base.process_launcher.ManagedChildProcessConnection; |
16 | 19 |
17 import java.io.IOException; | 20 import java.io.IOException; |
18 | 21 |
19 /** | 22 /** |
20 * This is the java counterpart to ChildProcessLauncherHelper. It is owned by na
tive side and | 23 * This is the java counterpart to ChildProcessLauncherHelper. It is owned by na
tive side and |
21 * has an explicit destroy method. | 24 * has an explicit destroy method. |
22 * Each public or jni methods should have explicit documentation on what threads
they are called. | 25 * Each public or jni methods should have explicit documentation on what threads
they are called. |
23 */ | 26 */ |
24 @JNINamespace("content::internal") | 27 @JNINamespace("content::internal") |
25 class ChildProcessLauncherHelper { | 28 class ChildProcessLauncherHelper { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Unittest packages do not declare services. Some tests require a r
ealistic number | 133 // Unittest packages do not declare services. Some tests require a r
ealistic number |
131 // to test child process policies, so pick a high-ish number here. | 134 // to test child process policies, so pick a high-ish number here. |
132 return 65535; | 135 return 65535; |
133 } | 136 } |
134 } | 137 } |
135 | 138 |
136 // Can be called on a number of threads, including launcher, and binder. | 139 // Can be called on a number of threads, including launcher, and binder. |
137 private static native void nativeOnChildProcessStarted( | 140 private static native void nativeOnChildProcessStarted( |
138 long nativeChildProcessLauncherHelper, int pid); | 141 long nativeChildProcessLauncherHelper, int pid); |
139 } | 142 } |
OLD | NEW |