当前位置: 首页>>代码示例>>Java>>正文


Java IChildProcessService类代码示例

本文整理汇总了Java中org.chromium.content.common.IChildProcessService的典型用法代码示例。如果您正苦于以下问题:Java IChildProcessService类的具体用法?Java IChildProcessService怎么用?Java IChildProcessService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IChildProcessService类属于org.chromium.content.common包,在下文中一共展示了IChildProcessService类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onServiceConnected

import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
@Override
public void onServiceConnected(ComponentName className, IBinder service) {
    synchronized(mLock) {
        // A flag from the parent class ensures we run the post-connection logic only once
        // (instead of once per each ChildServiceConnection).
        if (mServiceConnectComplete) {
            return;
        }
        TraceEvent.begin();
        mServiceConnectComplete = true;
        mService = IChildProcessService.Stub.asInterface(service);
        // Make sure that the connection parameters have already been provided. If not,
        // doConnectionSetup() will be called from setupConnection().
        if (mConnectionParams != null) {
            doConnectionSetup();
        }
        TraceEvent.end();
    }
}
 
开发者ID:openresearch,项目名称:android-chromium-view,代码行数:20,代码来源:ChildProcessConnection.java

示例2: onServiceConnected

import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
@Override
public void onServiceConnected(ComponentName className, IBinder service) {
    synchronized (mLock) {
        // A flag from the parent class ensures we run the post-connection logic only once
        // (instead of once per each ChildServiceConnection).
        if (mServiceConnectComplete) {
            return;
        }
        TraceEvent.begin();
        mServiceConnectComplete = true;
        mService = IChildProcessService.Stub.asInterface(service);
        // Make sure that the connection parameters have already been provided. If not,
        // doConnectionSetup() will be called from setupConnection().
        if (mConnectionParams != null) {
            doConnectionSetup();
        }
        TraceEvent.end();
    }
}
 
开发者ID:mogoweb,项目名称:chromium_webview,代码行数:20,代码来源:ChildProcessConnectionImpl.java

示例3: getService

import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
IChildProcessService getService() {
    synchronized(mLock) {
        return mService;
    }
}
 
开发者ID:openresearch,项目名称:android-chromium-view,代码行数:6,代码来源:ChildProcessConnection.java

示例4: getService

import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
@Override
public IChildProcessService getService() {
    synchronized (mLock) {
        return mService;
    }
}
 
开发者ID:mogoweb,项目名称:chromium_webview,代码行数:7,代码来源:ChildProcessConnectionImpl.java

示例5: getChildService

import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
/**
 * Returns the child process service interface for the given pid. This may be called on
 * any thread, but the caller must assume that the service can disconnect at any time. All
 * service calls should catch and handle android.os.RemoteException.
 *
 * @param pid The pid (process handle) of the service obtained from {@link #start}.
 * @return The IChildProcessService or null if the service no longer exists.
 */
public static IChildProcessService getChildService(int pid) {
    ChildProcessConnection connection = sServiceMap.get(pid);
    if (connection != null) {
        return connection.getService();
    }
    return null;
}
 
开发者ID:openresearch,项目名称:android-chromium-view,代码行数:16,代码来源:ChildProcessLauncher.java

示例6: getService

import org.chromium.content.common.IChildProcessService; //导入依赖的package包/类
IChildProcessService getService(); 
开发者ID:mogoweb,项目名称:chromium_webview,代码行数:2,代码来源:ChildProcessConnection.java


注:本文中的org.chromium.content.common.IChildProcessService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。