/* * This file is auto-generated. DO NOT MODIFY. * Original file: /Users/davis/git/android-chromium-view/content/src/org/chromium/content/common/IChildProcessService.aidl */ package org.chromium.content.common; public interface IChildProcessService extends android.os.IInterface { /** Local-side IPC implementation stub class. */ public static abstract class Stub extends android.os.Binder implements org.chromium.content.common.IChildProcessService { private static final java.lang.String DESCRIPTOR = "org.chromium.content.common.IChildProcessService"; /** Construct the stub at attach it to the interface. */ public Stub() { this.attachInterface(this, DESCRIPTOR); } /** * Cast an IBinder object into an org.chromium.content.common.IChildProcessService interface, * generating a proxy if needed. */ public static org.chromium.content.common.IChildProcessService asInterface(android.os.IBinder obj) { if ((obj==null)) { return null; } android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); if (((iin!=null)&&(iin instanceof org.chromium.content.common.IChildProcessService))) { return ((org.chromium.content.common.IChildProcessService)iin); } return new org.chromium.content.common.IChildProcessService.Stub.Proxy(obj); } @Override public android.os.IBinder asBinder() { return this; } @Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException { switch (code) { case INTERFACE_TRANSACTION: { reply.writeString(DESCRIPTOR); return true; } case TRANSACTION_setupConnection: { data.enforceInterface(DESCRIPTOR); android.os.Bundle _arg0; if ((0!=data.readInt())) { _arg0 = android.os.Bundle.CREATOR.createFromParcel(data); } else { _arg0 = null; } org.chromium.content.common.IChildProcessCallback _arg1; _arg1 = org.chromium.content.common.IChildProcessCallback.Stub.asInterface(data.readStrongBinder()); int _result = this.setupConnection(_arg0, _arg1); reply.writeNoException(); reply.writeInt(_result); return true; } } return super.onTransact(code, data, reply, flags); } private static class Proxy implements org.chromium.content.common.IChildProcessService { private android.os.IBinder mRemote; Proxy(android.os.IBinder remote) { mRemote = remote; } @Override public android.os.IBinder asBinder() { return mRemote; } public java.lang.String getInterfaceDescriptor() { return DESCRIPTOR; } // Sets up the initial IPC channel and returns the pid of the child process. @Override public int setupConnection(android.os.Bundle args, org.chromium.content.common.IChildProcessCallback callback) throws android.os.RemoteException { android.os.Parcel _data = android.os.Parcel.obtain(); android.os.Parcel _reply = android.os.Parcel.obtain(); int _result; try { _data.writeInterfaceToken(DESCRIPTOR); if ((args!=null)) { _data.writeInt(1); args.writeToParcel(_data, 0); } else { _data.writeInt(0); } _data.writeStrongBinder((((callback!=null))?(callback.asBinder()):(null))); mRemote.transact(Stub.TRANSACTION_setupConnection, _data, _reply, 0); _reply.readException(); _result = _reply.readInt(); } finally { _reply.recycle(); _data.recycle(); } return _result; } } static final int TRANSACTION_setupConnection = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0); } // Sets up the initial IPC channel and returns the pid of the child process. public int setupConnection(android.os.Bundle args, org.chromium.content.common.IChildProcessCallback callback) throws android.os.RemoteException; }