| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 private int mCpuCount; | 62 private int mCpuCount; |
| 63 private long mCpuFeatures; | 63 private long mCpuFeatures; |
| 64 // File descriptors that should be registered natively. | 64 // File descriptors that should be registered natively. |
| 65 private FileDescriptorInfo[] mFdInfos; | 65 private FileDescriptorInfo[] mFdInfos; |
| 66 // Linker-specific parameters for this child process service. | 66 // Linker-specific parameters for this child process service. |
| 67 private ChromiumLinkerParams mLinkerParams; | 67 private ChromiumLinkerParams mLinkerParams; |
| 68 // Child library process type. | 68 // Child library process type. |
| 69 private int mLibraryProcessType; | 69 private int mLibraryProcessType; |
| 70 | 70 |
| 71 private static AtomicReference<Context> sContext = new AtomicReference<>(nul
l); | 71 private static AtomicReference<Context> sContext = new AtomicReference<>(nul
l); |
| 72 private boolean mLibraryInitialized = false; | 72 private boolean mLibraryInitialized; |
| 73 | 73 |
| 74 /** | 74 /** |
| 75 * If >= 0 enables "validation of caller of {@link mBinder}'s methods". A Re
moteException | 75 * If >= 0 enables "validation of caller of {@link mBinder}'s methods". A Re
moteException |
| 76 * is thrown when an application with a uid other than {@link mAuthorizedCal
lerUid} calls | 76 * is thrown when an application with a uid other than {@link mAuthorizedCal
lerUid} calls |
| 77 * {@link mBinder}'s methods. | 77 * {@link mBinder}'s methods. |
| 78 */ | 78 */ |
| 79 private int mAuthorizedCallerUid; | 79 private int mAuthorizedCallerUid; |
| 80 | 80 |
| 81 private final Semaphore mActivitySemaphore = new Semaphore(1); | 81 private final Semaphore mActivitySemaphore = new Semaphore(1); |
| 82 | 82 |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 private static native void nativeInitChildProcessImpl( | 415 private static native void nativeInitChildProcessImpl( |
| 416 ChildProcessServiceImpl serviceImpl, int cpuCount, long cpuFeatures)
; | 416 ChildProcessServiceImpl serviceImpl, int cpuCount, long cpuFeatures)
; |
| 417 | 417 |
| 418 /** | 418 /** |
| 419 * Force the child process to exit. | 419 * Force the child process to exit. |
| 420 */ | 420 */ |
| 421 private static native void nativeExitChildProcess(); | 421 private static native void nativeExitChildProcess(); |
| 422 | 422 |
| 423 private native void nativeShutdownMainThread(); | 423 private native void nativeShutdownMainThread(); |
| 424 } | 424 } |
| OLD | NEW |