| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.ComponentName; | 7 import android.content.ComponentName; |
| 8 import android.content.Context; | 8 import android.content.Context; |
| 9 import android.content.pm.ApplicationInfo; | 9 import android.content.pm.ApplicationInfo; |
| 10 import android.content.pm.PackageManager; | 10 import android.content.pm.PackageManager; |
| 11 import android.os.AsyncTask; | 11 import android.os.AsyncTask; |
| 12 import android.os.Bundle; | 12 import android.os.Bundle; |
| 13 import android.os.ParcelFileDescriptor; | 13 import android.os.ParcelFileDescriptor; |
| 14 import android.os.RemoteException; | 14 import android.os.RemoteException; |
| 15 import android.text.TextUtils; | 15 import android.text.TextUtils; |
| 16 import android.view.Surface; | 16 import android.view.Surface; |
| 17 | 17 |
| 18 import org.chromium.base.CommandLine; | 18 import org.chromium.base.CommandLine; |
| 19 import org.chromium.base.CpuFeatures; | 19 import org.chromium.base.CpuFeatures; |
| 20 import org.chromium.base.Log; | 20 import org.chromium.base.Log; |
| 21 import org.chromium.base.ThreadUtils; | 21 import org.chromium.base.ThreadUtils; |
| 22 import org.chromium.base.TraceEvent; | 22 import org.chromium.base.TraceEvent; |
| 23 import org.chromium.base.UnguessableToken; | 23 import org.chromium.base.UnguessableToken; |
| 24 import org.chromium.base.VisibleForTesting; | 24 import org.chromium.base.VisibleForTesting; |
| 25 import org.chromium.base.annotations.CalledByNative; | 25 import org.chromium.base.annotations.CalledByNative; |
| 26 import org.chromium.base.annotations.JNINamespace; | 26 import org.chromium.base.annotations.JNINamespace; |
| 27 import org.chromium.base.library_loader.Linker; | 27 import org.chromium.base.library_loader.Linker; |
| 28 import org.chromium.base.process_launcher.ChildProcessCreationParams; |
| 28 import org.chromium.content.app.ChromiumLinkerParams; | 29 import org.chromium.content.app.ChromiumLinkerParams; |
| 29 import org.chromium.content.app.PrivilegedProcessService; | 30 import org.chromium.content.app.PrivilegedProcessService; |
| 30 import org.chromium.content.app.SandboxedProcessService; | 31 import org.chromium.content.app.SandboxedProcessService; |
| 31 import org.chromium.content.common.ContentSwitches; | 32 import org.chromium.content.common.ContentSwitches; |
| 32 import org.chromium.content.common.FileDescriptorInfo; | 33 import org.chromium.content.common.FileDescriptorInfo; |
| 33 import org.chromium.content.common.IChildProcessCallback; | 34 import org.chromium.content.common.IChildProcessCallback; |
| 34 import org.chromium.content.common.SurfaceWrapper; | 35 import org.chromium.content.common.SurfaceWrapper; |
| 35 | 36 |
| 36 import java.io.IOException; | 37 import java.io.IOException; |
| 37 import java.util.ArrayList; | 38 import java.util.ArrayList; |
| (...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 | 970 |
| 970 return true; | 971 return true; |
| 971 } | 972 } |
| 972 | 973 |
| 973 private static native void nativeOnChildProcessStarted(long clientContext, i
nt pid); | 974 private static native void nativeOnChildProcessStarted(long clientContext, i
nt pid); |
| 974 private static native void nativeCompleteScopedSurfaceRequest( | 975 private static native void nativeCompleteScopedSurfaceRequest( |
| 975 UnguessableToken requestToken, Surface surface); | 976 UnguessableToken requestToken, Surface surface); |
| 976 private static native boolean nativeIsSingleProcess(); | 977 private static native boolean nativeIsSingleProcess(); |
| 977 private static native Surface nativeGetViewSurface(int surfaceId); | 978 private static native Surface nativeGetViewSurface(int surfaceId); |
| 978 } | 979 } |
| OLD | NEW |