OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.app; | 5 package org.chromium.content.app; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 import android.content.Intent; | 8 import android.content.Intent; |
9 import android.graphics.SurfaceTexture; | 9 import android.graphics.SurfaceTexture; |
10 import android.os.Binder; | 10 import android.os.Binder; |
(...skipping 14 matching lines...) Expand all Loading... |
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.annotations.MainDex; | 27 import org.chromium.base.annotations.MainDex; |
28 import org.chromium.base.annotations.SuppressFBWarnings; | 28 import org.chromium.base.annotations.SuppressFBWarnings; |
29 import org.chromium.base.annotations.UsedByReflection; | 29 import org.chromium.base.annotations.UsedByReflection; |
30 import org.chromium.base.library_loader.LibraryLoader; | 30 import org.chromium.base.library_loader.LibraryLoader; |
31 import org.chromium.base.library_loader.Linker; | 31 import org.chromium.base.library_loader.Linker; |
32 import org.chromium.base.library_loader.ProcessInitException; | 32 import org.chromium.base.library_loader.ProcessInitException; |
33 import org.chromium.base.process_launcher.ChildProcessCreationParams; | 33 import org.chromium.base.process_launcher.ChildProcessCreationParams; |
34 import org.chromium.base.process_launcher.FileDescriptorInfo; | 34 import org.chromium.base.process_launcher.FileDescriptorInfo; |
| 35 import org.chromium.base.process_launcher.IChildProcessService; |
35 import org.chromium.content.browser.ChildProcessConstants; | 36 import org.chromium.content.browser.ChildProcessConstants; |
36 import org.chromium.content.common.ContentSwitches; | 37 import org.chromium.content.common.ContentSwitches; |
37 import org.chromium.content.common.IChildProcessService; | |
38 import org.chromium.content.common.IGpuProcessCallback; | 38 import org.chromium.content.common.IGpuProcessCallback; |
39 import org.chromium.content.common.SurfaceWrapper; | 39 import org.chromium.content.common.SurfaceWrapper; |
40 | 40 |
41 import java.util.concurrent.Semaphore; | 41 import java.util.concurrent.Semaphore; |
42 import java.util.concurrent.atomic.AtomicReference; | 42 import java.util.concurrent.atomic.AtomicReference; |
43 | 43 |
44 /** | 44 /** |
45 * This class implements all of the functionality for {@link ChildProcessService
} which owns an | 45 * This class implements all of the functionality for {@link ChildProcessService
} which owns an |
46 * object of {@link ChildProcessServiceImpl}. | 46 * object of {@link ChildProcessServiceImpl}. |
47 * It makes possible that WebAPK's ChildProcessService owns a ChildProcessServic
eImpl object | 47 * It makes possible that WebAPK's ChildProcessService owns a ChildProcessServic
eImpl object |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 private static native void nativeInitChildProcessImpl( | 431 private static native void nativeInitChildProcessImpl( |
432 ChildProcessServiceImpl serviceImpl, int cpuCount, long cpuFeatures)
; | 432 ChildProcessServiceImpl serviceImpl, int cpuCount, long cpuFeatures)
; |
433 | 433 |
434 /** | 434 /** |
435 * Force the child process to exit. | 435 * Force the child process to exit. |
436 */ | 436 */ |
437 private static native void nativeExitChildProcess(); | 437 private static native void nativeExitChildProcess(); |
438 | 438 |
439 private native void nativeShutdownMainThread(); | 439 private native void nativeShutdownMainThread(); |
440 } | 440 } |
OLD | NEW |