chromium/components/safe_browsing/core/common/safe_browsing_url_checker.mojom

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module safe_browsing.mojom;

import "url/mojom/url.mojom";

// This interface is used for checking redirects, so that the server side can
// keep track of the redirect chain. Disconnecting the checker interface cancels
// on-going URL checks.
interface SafeBrowsingUrlChecker {
  // |proceed| indicates whether it is okay to proceed with loading the URL.
  // |showed_interstitial| indicates whether the SafeBrowsing interstitial page
  // has been shown to the user.
  CheckUrl(url.mojom.Url url, string method)
      => (bool proceed,
          bool showed_interstitial);
};