#include "chrome/browser/permissions/crowd_deny_safe_browsing_request.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/metrics/histogram_functions.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_runner.h"
#include "base/task/task_traits.h"
#include "base/time/clock.h"
#include "base/timer/timer.h"
#include "components/safe_browsing/core/browser/db/database_manager.h"
#include "components/safe_browsing/core/common/features.h"
#include "content/public/browser/browser_thread.h"
#include "url/origin.h"
namespace {
constexpr char kSafeBrowsingNotificationPermissionName[] = …;
constexpr base::TimeDelta kSafeBrowsingCheckTimeout = …;
}
class CrowdDenySafeBrowsingRequest::SafeBrowsingClient
: public safe_browsing::SafeBrowsingDatabaseManager::Client { … };
CrowdDenySafeBrowsingRequest::CrowdDenySafeBrowsingRequest(
scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> database_manager,
const base::Clock* clock,
const url::Origin& origin,
VerdictCallback callback)
: … { … }
CrowdDenySafeBrowsingRequest::~CrowdDenySafeBrowsingRequest() { … }
void CrowdDenySafeBrowsingRequest::OnReceivedResult(Verdict verdict) { … }