#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 {
const int kCheckUrlTimeoutMs = …;
void RecordRunnerTimeTaken(const std::string& performed_check_suffix,
base::TimeDelta time_taken) { … }
}
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() { … }
}