--- a/org.chromium.sdk/src/org/chromium/sdk/JavascriptVm.java Mon Jun 07 16:33:07 2010 -0700
+++ b/org.chromium.sdk/src/org/chromium/sdk/JavascriptVm.java Mon Jun 07 16:51:19 2010 -0700
@@ -98,7 +98,7 @@
* may be {@code null}
*/
void setBreakpoint(Breakpoint.Type type, String target, int line, int position, boolean enabled,
- String condition, int ignoreCount, BreakpointCallback callback);
+ String condition, int ignoreCount, BreakpointCallback callback, SyncCallback syncCallback);
/**
* Tries to suspend VM. If successful, {@link DebugEventListener#suspended(DebugContext)}
@@ -107,4 +107,15 @@
* may be {@code null}
*/
void suspend(SuspendCallback callback);
+
+ interface ListBreakpointsCallback {
+ void success(Collection<? extends Breakpoint> breakpoints);
+ void failure(Exception exception);
+ }
+
+ /**
+ * Asynchronously reads breakpoints from remote VM. The now-effective collection of breakpoints
+ * is returned to callback. Already existing {@link Breakpoint} instances are preserved.
+ */
+ void listBreakpoints(ListBreakpointsCallback callback, SyncCallback syncCallback);
}