| 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 24 matching lines...) Expand all  Loading... | 
|   35 import org.chromium.content.common.IChildProcessService; |   35 import org.chromium.content.common.IChildProcessService; | 
|   36 import org.chromium.content.common.SurfaceWrapper; |   36 import org.chromium.content.common.SurfaceWrapper; | 
|   37  |   37  | 
|   38 import java.util.concurrent.Semaphore; |   38 import java.util.concurrent.Semaphore; | 
|   39 import java.util.concurrent.atomic.AtomicReference; |   39 import java.util.concurrent.atomic.AtomicReference; | 
|   40  |   40  | 
|   41 /** |   41 /** | 
|   42  * This class implements all of the functionality for {@link ChildProcessService
     } which owns an |   42  * This class implements all of the functionality for {@link ChildProcessService
     } which owns an | 
|   43  * object of {@link ChildProcessServiceImpl}. |   43  * object of {@link ChildProcessServiceImpl}. | 
|   44  * It makes possible that WebAPK's ChildProcessService owns a ChildProcessServic
     eImpl object |   44  * It makes possible that WebAPK's ChildProcessService owns a ChildProcessServic
     eImpl object | 
|   45  * and uses the same functionalities to create renderer process for WebAPKs when
      "--enable-webapk" |   45  * and uses the same functionalities to create renderer process for WebAPKs when | 
|   46  * flag is turned on. |   46  * "--enable-improved-a2hs" flag is turned on. | 
|   47  */ |   47  */ | 
|   48 @JNINamespace("content") |   48 @JNINamespace("content") | 
|   49 @SuppressWarnings("SynchronizeOnNonFinalField") |   49 @SuppressWarnings("SynchronizeOnNonFinalField") | 
|   50 @MainDex |   50 @MainDex | 
|   51 @UsedByReflection("WebApkSandboxedProcessService") |   51 @UsedByReflection("WebApkSandboxedProcessService") | 
|   52 public class ChildProcessServiceImpl { |   52 public class ChildProcessServiceImpl { | 
|   53     private static final String MAIN_THREAD_NAME = "ChildProcessMain"; |   53     private static final String MAIN_THREAD_NAME = "ChildProcessMain"; | 
|   54     private static final String TAG = "ChildProcessService"; |   54     private static final String TAG = "ChildProcessService"; | 
|   55     private IChildProcessCallback mCallback; |   55     private IChildProcessCallback mCallback; | 
|   56  |   56  | 
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  473     private static native void nativeInitChildProcessImpl( |  473     private static native void nativeInitChildProcessImpl( | 
|  474             ChildProcessServiceImpl serviceImpl, int cpuCount, long cpuFeatures)
     ; |  474             ChildProcessServiceImpl serviceImpl, int cpuCount, long cpuFeatures)
     ; | 
|  475  |  475  | 
|  476     /** |  476     /** | 
|  477      * Force the child process to exit. |  477      * Force the child process to exit. | 
|  478      */ |  478      */ | 
|  479     private static native void nativeExitChildProcess(); |  479     private static native void nativeExitChildProcess(); | 
|  480  |  480  | 
|  481     private native void nativeShutdownMainThread(); |  481     private native void nativeShutdownMainThread(); | 
|  482 } |  482 } | 
| OLD | NEW |