root/android_webview/java/src/org/chromium/android_webview/AwDevToolsServer.java

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. JNINamespace
  2. destroy
  3. setRemoteDebuggingEnabled
  4. nativeInitRemoteDebugging
  5. nativeDestroyRemoteDebugging
  6. nativeSetRemoteDebuggingEnabled

// Copyright 2013 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.android_webview;

import org.chromium.base.JNINamespace;

/**
 * Controller for Remote Web Debugging (Developer Tools).
 */
@JNINamespace("android_webview")
public class AwDevToolsServer {

    private long mNativeDevToolsServer = 0;

    public AwDevToolsServer() {
        mNativeDevToolsServer = nativeInitRemoteDebugging();
    }

    public void destroy() {
        nativeDestroyRemoteDebugging(mNativeDevToolsServer);
        mNativeDevToolsServer = 0;
    }

    public void setRemoteDebuggingEnabled(boolean enabled) {
        nativeSetRemoteDebuggingEnabled(mNativeDevToolsServer, enabled);
    }

    private native long nativeInitRemoteDebugging();
    private native void nativeDestroyRemoteDebugging(long devToolsServer);
    private native void nativeSetRemoteDebuggingEnabled(long devToolsServer, boolean enabled);
}

/* [<][>][^][v][top][bottom][index][help] */