diff -r ef76fc2ac88c -r e4420d2515f1 org.chromium.sdk/src/org/chromium/sdk/JavascriptVm.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.chromium.sdk/src/org/chromium/sdk/JavascriptVm.java Wed Dec 23 17:13:18 2009 -0800 @@ -0,0 +1,108 @@ +// Copyright (c) 2009 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.sdk; + +import java.util.Collection; + +import org.chromium.sdk.internal.tools.v8.MethodIsBlockingException; + +/** + * Abstraction of a remote Javascript virtual machine. Clients can use it to + * conduct debugging process. This interface does not specify attach method, + * because it cannot be polymorphous. + */ +public interface JavascriptVm { + + /** + * A callback for breakpoint-related requests. + */ + public interface BreakpointCallback { + + void success(Breakpoint breakpoint); + + void failure(String errorMessage); + } + + /** + * A callback for retrieving scripts. + */ + public interface ScriptsCallback { + + void success(Collection