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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ChildProcessConstants.java

Issue 2795333002: [Merge m58] Abstracting parameters passed to child processes on Android. (Closed)
Patch Set: Created 3 years, 8 months 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** 7 /**
8 * Constants to be used by child processes. 8 * Constants to be used by child processes.
9 */ 9 */
10 public class ChildProcessConstants { 10 public interface ChildProcessConstants {
11 // Names of items placed in the bind or start command intent, or connection bundle. 11 // Below are the names for the items placed in the bind or start command int ent.
12 // Used to pass the command line params to child processes. 12 // Note that because that intent maybe reused if a service is restarted, non e should be process
13 // specific.
14
15 // Key in the binding Intent's Bundle for the ChromiumLinkerParams.
16 public static final String EXTRA_LINKER_PARAMS =
17 "com.google.android.apps.chrome.extra.linker_params";
18
19 // Key in the binding Intent's Bundle for the type of process the child is.
20 public static final String EXTRA_LIBRARY_PROCESS_TYPE =
21 "com.google.android.apps.chrome.extra.library_process_type";
22
23 // Below are the names for the items placed in the Bundle passed in the
24 // IChildProcessService.setupConnection call, once the connection has been e stablished.
25
26 // Key for the command line.
13 public static final String EXTRA_COMMAND_LINE = 27 public static final String EXTRA_COMMAND_LINE =
14 "com.google.android.apps.chrome.extra.command_line"; 28 "com.google.android.apps.chrome.extra.command_line";
15 // Used to pass file descriptors to child processes. 29
30 // Key for the file descriptors that should be mapped in the child process..
16 public static final String EXTRA_FILES = "com.google.android.apps.chrome.ext ra.extraFiles"; 31 public static final String EXTRA_FILES = "com.google.android.apps.chrome.ext ra.extraFiles";
17 // Used to pass the CPU core count to child processes. 32
33 // Key for the number of CPU cores.
18 public static final String EXTRA_CPU_COUNT = "com.google.android.apps.chrome .extra.cpu_count"; 34 public static final String EXTRA_CPU_COUNT = "com.google.android.apps.chrome .extra.cpu_count";
19 // Used to pass the CPU features mask to child processes. 35
36 // Key for the CPU features mask.
20 public static final String EXTRA_CPU_FEATURES = 37 public static final String EXTRA_CPU_FEATURES =
21 "com.google.android.apps.chrome.extra.cpu_features"; 38 "com.google.android.apps.chrome.extra.cpu_features";
22 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698