summaryrefslogtreecommitdiff
path: root/src/org/chromium/support_lib_boundary/WebMessagePortBoundaryInterface.java
blob: 95ba7563661d1cb3362668d26a32d5db35e19573 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package org.chromium.support_lib_boundary;

import android.os.Handler;

import java.lang.reflect.InvocationHandler;

/** Boundary interface for WebMessagePort. */
public interface WebMessagePortBoundaryInterface {
    void postMessage(/* WebMessage */ InvocationHandler message);

    void close();

    void setWebMessageCallback(/* WebMessageCallback */ InvocationHandler callback);

    void setWebMessageCallback(
            /* WebMessageCallback */ InvocationHandler callback, Handler handler);
}