// 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:
//     content/common/service_port_service.mojom
//

package org.chromium.mojom.content;

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

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

    Manager<ServicePortService, ServicePortService.Proxy> MANAGER = ServicePortService_Internal.MANAGER;

    void setClient(ServicePortServiceClient client);

    void connect(String targetUrl, String origin, ConnectResponse callback);
    interface ConnectResponse extends org.chromium.mojo.bindings.Callbacks.Callback2<Integer, Integer> { }

    void postMessage(int portId, String message, MojoTransferredMessagePort[] ports);

    void closePort(int portId);
}

