This source file includes following definitions.
- destroy
- isRemoteDebuggingEnabled
- setRemoteDebuggingEnabled
- nativeInitRemoteDebugging
- nativeDestroyRemoteDebugging
- nativeIsRemoteDebuggingEnabled
- nativeSetRemoteDebuggingEnabled
package org.chromium.chrome.browser;
public class DevToolsServer {
private long mNativeDevToolsServer = 0;
public DevToolsServer(String socketNamePrefix) {
mNativeDevToolsServer = nativeInitRemoteDebugging(socketNamePrefix);
}
public void destroy() {
nativeDestroyRemoteDebugging(mNativeDevToolsServer);
mNativeDevToolsServer = 0;
}
public boolean isRemoteDebuggingEnabled() {
return nativeIsRemoteDebuggingEnabled(mNativeDevToolsServer);
}
public void setRemoteDebuggingEnabled(boolean enabled) {
nativeSetRemoteDebuggingEnabled(mNativeDevToolsServer, enabled);
}
private native long nativeInitRemoteDebugging(String socketNamePrefix);
private native void nativeDestroyRemoteDebugging(long devToolsServer);
private native boolean nativeIsRemoteDebuggingEnabled(long devToolsServer);
private native void nativeSetRemoteDebuggingEnabled(long devToolsServer, boolean enabled);
}