#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 {
const int kLookupTimeoutMS = …;
}
void AllowlistCheckerClient::StartCheckCsdAllowlist(
scoped_refptr<SafeBrowsingDatabaseManager> database_manager,
const GURL& url,
base::OnceCallback<void(bool)> callback_for_result) { … }
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) { … }
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() { … }
void AllowlistCheckerClient::OnCheckAllowlistUrlResult(
bool did_match_allowlist) { … }
void AllowlistCheckerClient::OnCheckUrlResult(bool did_match_allowlist) { … }
void AllowlistCheckerClient::OnTimeout() { … }
}