2
|
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;
|
|
6 |
|
|
7 |
import org.chromium.sdk.internal.transport.Connection;
|
|
8 |
|
|
9 |
/**
|
|
10 |
* Tool handler sends out its messages via this interface. This way tool handler does not
|
|
11 |
* need to access {@link Connection}. Instance of {@link ToolOutput} should add a proper
|
|
12 |
* header (with tool name and destination fields).
|
|
13 |
* This interface is used by a tool handler implementation.
|
|
14 |
*/
|
|
15 |
public interface ToolOutput {
|
|
16 |
/**
|
|
17 |
* Sends text message to a remote tool.
|
|
18 |
* @param content of message (without header)
|
|
19 |
*/
|
|
20 |
void send(String content);
|
|
21 |
}
|