summaryrefslogtreecommitdiff
path: root/src/org/chromium/support_lib_boundary/StaticsBoundaryInterface.java
blob: d39558f4963e68fc2cf977304104cc8d205d4e51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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.content.Context;
import android.net.Uri;
import android.webkit.ValueCallback;

import java.util.List;
import java.util.Set;

/** Boundary interface for WebViewFactoryProvider.Statics. */
public interface StaticsBoundaryInterface {
    void initSafeBrowsing(Context context, ValueCallback<Boolean> callback);

    void setSafeBrowsingAllowlist(Set<String> hosts, ValueCallback<Boolean> callback);

    void setSafeBrowsingWhitelist(List<String> hosts, ValueCallback<Boolean> callback);

    Uri getSafeBrowsingPrivacyPolicyUrl();

    boolean isMultiProcessEnabled();

    String getVariationsHeader();
}