1// Copyright 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5module blink.mojom;
6
7import "services/network/public/mojom/quic_transport.mojom";
8import "url/mojom/url.mojom";
9
10// An interface for creating a QuicTransport connection from the renderer,
11// implemented in the browser process.
12interface QuicTransportConnector {
13  // Starts an opening handshake.
14  // It is recommended to detect mojo connection errors on |client|.
15  Connect(
16    url.mojom.Url url,
17    array<network.mojom.QuicTransportCertificateFingerprint> fingerprints,
18    pending_remote<network.mojom.QuicTransportHandshakeClient> client);
19};
20