| OLD | NEW |
| 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 interface ChildProcessConstants { | 10 public interface ChildProcessConstants { |
| 11 // Below are the names for the items placed in the bind or start command int
ent. | 11 // Below are the names for the items placed in the bind or start command int
ent. |
| 12 // Note that because that intent maybe reused if a service is restarted, non
e should be process | 12 // Note that because that intent maybe reused if a service is restarted, non
e should be process |
| 13 // specific. | 13 // specific. |
| 14 | 14 |
| 15 // Key in the binding Intent's Bundle for the ChromiumLinkerParams. | 15 // Key in the binding Intent's Bundle for the ChromiumLinkerParams. |
| 16 public static final String EXTRA_LINKER_PARAMS = | 16 public static final String EXTRA_LINKER_PARAMS = |
| 17 "com.google.android.apps.chrome.extra.linker_params"; | 17 "com.google.android.apps.chrome.extra.linker_params"; |
| 18 public static final String EXTRA_BIND_TO_CALLER = |
| 19 "com.google.android.apps.chrome.extra.bind_to_caller"; |
| 18 | 20 |
| 19 // Below are the names for the items placed in the Bundle passed in the | 21 // Below are the names for the items placed in the Bundle passed in the |
| 20 // IChildProcessService.setupConnection call, once the connection has been e
stablished. | 22 // IChildProcessService.setupConnection call, once the connection has been e
stablished. |
| 21 | 23 |
| 22 // Key for the command line. | 24 // Key for the command line. |
| 23 public static final String EXTRA_COMMAND_LINE = | 25 public static final String EXTRA_COMMAND_LINE = |
| 24 "com.google.android.apps.chrome.extra.command_line"; | 26 "com.google.android.apps.chrome.extra.command_line"; |
| 25 | 27 |
| 26 // Key for the file descriptors that should be mapped in the child process.. | 28 // Key for the file descriptors that should be mapped in the child process.. |
| 27 public static final String EXTRA_FILES = "com.google.android.apps.chrome.ext
ra.extraFiles"; | 29 public static final String EXTRA_FILES = "com.google.android.apps.chrome.ext
ra.extraFiles"; |
| 28 | 30 |
| 29 // Key for the number of CPU cores. | 31 // Key for the number of CPU cores. |
| 30 public static final String EXTRA_CPU_COUNT = "com.google.android.apps.chrome
.extra.cpu_count"; | 32 public static final String EXTRA_CPU_COUNT = "com.google.android.apps.chrome
.extra.cpu_count"; |
| 31 | 33 |
| 32 // Key for the CPU features mask. | 34 // Key for the CPU features mask. |
| 33 public static final String EXTRA_CPU_FEATURES = | 35 public static final String EXTRA_CPU_FEATURES = |
| 34 "com.google.android.apps.chrome.extra.cpu_features"; | 36 "com.google.android.apps.chrome.extra.cpu_features"; |
| 35 } | 37 } |
| OLD | NEW |