blob: ea680c3539c4e01af5eeec2390a213e83f7b26d1 [file] [log] [blame]
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.base.process_launcher;
import android.os.Bundle;
interface IChildProcessService {
// On the first call to this method, the service will record the calling PID
// and return true. Subsequent calls will only return true if the calling PID
// is the same as the recorded one.
boolean bindToCaller();
// Sets up the initial IPC channel and returns the pid of the child process.
int setupConnection(in Bundle args, IBinder callback);
// Asks the child service to crash so that we can test the termination logic.
void crashIntentionallyForTesting();
}