chromium/components/safe_browsing/core/browser/safe_browsing_lookup_mechanism_runner.h

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

#ifndef COMPONENTS_SAFE_BROWSING_CORE_BROWSER_SAFE_BROWSING_LOOKUP_MECHANISM_RUNNER_H_
#define COMPONENTS_SAFE_BROWSING_CORE_BROWSER_SAFE_BROWSING_LOOKUP_MECHANISM_RUNNER_H_

#include "base/functional/callback_forward.h"
#include "base/timer/timer.h"
#include "components/safe_browsing/core/browser/safe_browsing_lookup_mechanism.h"

namespace safe_browsing {

// This class is responsible for handling timeouts for running a specific Safe
// Browsing mechanism lookup. It keeps a timer while the mechanism runs and
// responds back to the caller either with the mechanism's results or with a
// flag indicating that the check timed out. If the check timed out, this object
// will also perform clean-up by destroying the mechanism object.
class SafeBrowsingLookupMechanismRunner {};

}  // namespace safe_browsing

#endif  // COMPONENTS_SAFE_BROWSING_CORE_BROWSER_SAFE_BROWSING_LOOKUP_MECHANISM_RUNNER_H_