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.base; | 5 package org.chromium.base; |
6 | 6 |
7 import org.chromium.base.FileDescriptorInfo; | |
8 import org.chromium.base.MainReturnCodeResult; | 7 import org.chromium.base.MainReturnCodeResult; |
| 8 import org.chromium.base.process_launcher.FileDescriptorInfo; |
9 | 9 |
10 /** | 10 /** |
11 * This interface is used to control child processes. | 11 * This interface is used to control child processes. |
12 */ | 12 */ |
13 interface ITestClient { | 13 interface ITestClient { |
14 /** | 14 /** |
15 * Runs the native <code>main</code> method in that service's process. | 15 * Runs the native <code>main</code> method in that service's process. |
16 * @param args the arguments passed to <code>main</code> | 16 * @param args the arguments passed to <code>main</code> |
17 * @param fdsToMap a list of file descriptors that are mapped in the native co
de | 17 * @param fdsToMap a list of file descriptors that are mapped in the native co
de |
18 * in <code>base::GlobalDescriptors</code>. | 18 * in <code>base::GlobalDescriptors</code>. |
(...skipping 17 matching lines...) Expand all Loading... |
36 * @return always true, a return value is only returned to force the call to b
e synchronous. | 36 * @return always true, a return value is only returned to force the call to b
e synchronous. |
37 */ | 37 */ |
38 boolean forceStopSynchronous(int exitCode); | 38 boolean forceStopSynchronous(int exitCode); |
39 | 39 |
40 /** | 40 /** |
41 * Forces the service process to terminate. | 41 * Forces the service process to terminate. |
42 * @param exitCode the exit code the process should terminate with. | 42 * @param exitCode the exit code the process should terminate with. |
43 */ | 43 */ |
44 void forceStop(int exitCode); | 44 void forceStop(int exitCode); |
45 } | 45 } |
OLD | NEW |