Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java

Issue 2496433002: Rename --enable-webapk command line flag to --enable-improved-a2hs (Closed)
Patch Set: Merge branch 'master' into rename_flag Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698