// 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:
//     mojo/services/network/public/interfaces/web_socket.mojom
//

package org.chromium.mojom.mojo;

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

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

    Manager<WebSocketClient, WebSocketClient.Proxy> MANAGER = WebSocketClient_Internal.MANAGER;

    void didConnect(String selectedSubprotocol, String extensions, org.chromium.mojo.system.DataPipe.ConsumerHandle receiveStream);

    void didReceiveData(boolean fin, int type, int numBytes);

    void didReceiveFlowControl(long quota);

    void didFail(String message);

    void didClose(boolean wasClean, short code, String reason);
}

