#include "components/subresource_filter/content/browser/subresource_filter_safe_browsing_client_request.h"
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/subresource_filter/content/browser/subresource_filter_safe_browsing_client.h"
#include "content/public/browser/browser_thread.h"
#include "url/gurl.h"
namespace subresource_filter {
constexpr base::TimeDelta
SubresourceFilterSafeBrowsingClientRequest::kCheckURLTimeout;
SubresourceFilterSafeBrowsingClientRequest::
SubresourceFilterSafeBrowsingClientRequest(
size_t request_id,
base::TimeTicks start_time,
scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager>
database_manager,
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
SubresourceFilterSafeBrowsingClient* client)
: … { … }
SubresourceFilterSafeBrowsingClientRequest::
~SubresourceFilterSafeBrowsingClientRequest() { … }
void SubresourceFilterSafeBrowsingClientRequest::Start(const GURL& url) { … }
void SubresourceFilterSafeBrowsingClientRequest::OnCheckBrowseUrlResult(
const GURL& url,
safe_browsing::SBThreatType threat_type,
const safe_browsing::ThreatMetadata& metadata) { … }
void SubresourceFilterSafeBrowsingClientRequest::OnCheckUrlTimeout() { … }
void SubresourceFilterSafeBrowsingClientRequest::SendCheckResultToClient(
bool served_from_network,
safe_browsing::SBThreatType threat_type,
const safe_browsing::ThreatMetadata& metadata) { … }
}