| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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.process_launcher; | 5 package org.chromium.base.process_launcher; |
| 6 | 6 |
| 7 import android.os.Bundle; | 7 import android.os.Bundle; |
| 8 | 8 |
| 9 import org.chromium.base.process_launcher.ICallbackInt; |
| 10 |
| 9 interface IChildProcessService { | 11 interface IChildProcessService { |
| 10 // On the first call to this method, the service will record the calling PID | 12 // On the first call to this method, the service will record the calling PID |
| 11 // and return true. Subsequent calls will only return true if the calling PID | 13 // and return true. Subsequent calls will only return true if the calling PID |
| 12 // is the same as the recorded one. | 14 // is the same as the recorded one. |
| 13 boolean bindToCaller(); | 15 boolean bindToCaller(); |
| 14 | 16 |
| 15 // Sets up the initial IPC channel and returns the pid of the child process. | 17 // Sets up the initial IPC channel. |
| 16 int setupConnection(in Bundle args, IBinder callback); | 18 oneway void setupConnection(in Bundle args, ICallbackInt pidCallback, |
| 19 IBinder gpuCallback); |
| 17 | 20 |
| 18 // Asks the child service to crash so that we can test the termination logic. | 21 // Asks the child service to crash so that we can test the termination logic. |
| 19 oneway void crashIntentionallyForTesting(); | 22 oneway void crashIntentionallyForTesting(); |
| 20 } | 23 } |
| OLD | NEW |