blob: dc15c52a0b562f046591c3c9651dec214cf93772 [file] [log] [blame]
// Copyright 2020 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.
module cert_verifier.mojom;
import "services/network/public/mojom/cert_verifier_service.mojom";
import "services/network/public/mojom/url_loader_factory.mojom";
import "services/network/public/mojom/network_context.mojom";
// Parent interface for the CertVerifierProcess. Hands out new
// CertVerifierService's, which have their own underlying CertVerifier's
// underneath.
interface CertVerifierServiceFactory {
// Gets a new CertVerifierFactory, which //net code can interface with using
// cert_verifier::MojoCertVerifier.
GetNewCertVerifier(pending_receiver<CertVerifierService> receiver,
pending_remote<network.mojom.URLLoaderFactory>?
cert_net_fetcher_url_loader_factory,
pending_remote<URLLoaderFactoryConnector>?
cert_net_fetcher_url_loader_factory_connector,
network.mojom.CertVerifierCreationParams? creation_params);
};
// Allows the CertVerifierService to connect a new URLLoaderFactory if its
// existing URLLoaderFactory is disconnected. The CertVerifierService uses the
// URLLoaderFactory for AIA and OCSP fetching.
interface URLLoaderFactoryConnector {
// Binds a URLLoaderFactory. The implementer of this interface is in charge
// of choosing the URLLoaderFactoryParams.
CreateURLLoaderFactory(
pending_receiver<network.mojom.URLLoaderFactory> url_loader_factory);
};