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

// 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.

#include "components/safe_browsing/core/browser/safe_browsing_lookup_mechanism_runner.h"

#include "base/metrics/histogram_functions.h"
#include "base/strings/strcat.h"

namespace safe_browsing {

namespace {
// Maximum time in milliseconds to wait for the SafeBrowsing service reputation
// check. After this amount of time the outstanding check will be aborted, and
// the resource will be treated as if it were safe.
const int kCheckUrlTimeoutMs =;

void RecordRunnerTimeTaken(const std::string& performed_check_suffix,
                           base::TimeDelta time_taken) {}
}  // namespace

SafeBrowsingLookupMechanismRunner::SafeBrowsingLookupMechanismRunner(
    std::unique_ptr<SafeBrowsingLookupMechanism> lookup_mechanism,
    const std::string& performed_check_suffix,
    CompleteCheckCallbackWithTimeout complete_check_callback)
    :{}

SafeBrowsingLookupMechanismRunner::~SafeBrowsingLookupMechanismRunner() =
    default;

SafeBrowsingLookupMechanism::StartCheckResult
SafeBrowsingLookupMechanismRunner::Run() {}

void SafeBrowsingLookupMechanismRunner::OnCompleteCheckResult(
    std::unique_ptr<SafeBrowsingLookupMechanism::CompleteCheckResult> result) {}

void SafeBrowsingLookupMechanismRunner::OnTimeout() {}

void SafeBrowsingLookupMechanismRunner::OnCheckComplete() {}

}  // namespace safe_browsing