equal
deleted
inserted
replaced
|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
|
2 // Use of this source code is governed by a BSD-style license that can be |
|
3 // found in the LICENSE file. |
|
4 |
|
5 package org.chromium.sdk.internal.tools.v8; |
|
6 |
|
7 import org.chromium.sdk.SyncCallback; |
|
8 import org.chromium.sdk.internal.tools.v8.V8CommandProcessor.V8HandlerCallback; |
|
9 |
|
10 /** |
|
11 * API to asynchronous message sender that supports callbacks. |
|
12 * @param <MESSAGE> type of message supported |
|
13 * @param <EX> exception that may be thrown synchronously. |
|
14 */ |
|
15 public interface V8CommandSender<MESSAGE, EX extends Exception> { |
|
16 void sendV8CommandAsync(MESSAGE message, boolean isImmediate, |
|
17 V8HandlerCallback v8HandlerCallback, SyncCallback syncCallback) throws EX; |
|
18 } |