chromium/components/safe_browsing/core/browser/db/allowlist_checker_client.cc

// Copyright 2017 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/db/allowlist_checker_client.h"

#include <memory>

#include "base/functional/bind.h"
#include "base/metrics/histogram_functions.h"

namespace safe_browsing {

namespace {

// Number of milliseconds to wait for the response from the Safe Browsing
// database manager before proceeding with the timeout behavior.
const int kLookupTimeoutMS =;
}  // namespace

// static
void AllowlistCheckerClient::StartCheckCsdAllowlist(
    scoped_refptr<SafeBrowsingDatabaseManager> database_manager,
    const GURL& url,
    base::OnceCallback<void(bool)> callback_for_result) {}

// static
std::unique_ptr<AllowlistCheckerClient>
AllowlistCheckerClient::GetAllowlistCheckerClient(
    scoped_refptr<SafeBrowsingDatabaseManager> database_manager,
    const GURL& url,
    base::OnceCallback<void(bool)>* callback_for_result,
    bool default_does_match_allowlist) {}

// static
void AllowlistCheckerClient::InvokeCallbackOrRelease(
    AsyncMatch match,
    std::unique_ptr<AllowlistCheckerClient> client) {}

AllowlistCheckerClient::AllowlistCheckerClient(
    base::OnceCallback<void(bool)> callback_for_result,
    scoped_refptr<SafeBrowsingDatabaseManager> database_manager,
    bool default_does_match_allowlist)
    :{}

AllowlistCheckerClient::~AllowlistCheckerClient() {}

// SafeBrowsingDatabaseMananger::Client impl
void AllowlistCheckerClient::OnCheckAllowlistUrlResult(
    bool did_match_allowlist) {}

void AllowlistCheckerClient::OnCheckUrlResult(bool did_match_allowlist) {}

void AllowlistCheckerClient::OnTimeout() {}

}  // namespace safe_browsing