// Copyright 2014 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.

// This file is autogenerated by:
//     mojo/public/tools/bindings/mojom_bindings_generator.py
// For:
//     device/serial/data_stream.mojom
//

package org.chromium.mojom.device.serial;

public interface DataSink extends org.chromium.mojo.bindings.Interface {

    public interface Proxy extends DataSink, org.chromium.mojo.bindings.Interface.Proxy {
    }

    Manager<DataSink, DataSink.Proxy> MANAGER = DataSink_Internal.MANAGER;

    void cancel(int error);

    void onData(byte[] data, OnDataResponse callback);
    interface OnDataResponse extends org.chromium.mojo.bindings.Callbacks.Callback2<Integer, Integer> { }

    void clearError();
}

