#include "components/subresource_filter/content/browser/subresource_filter_safe_browsing_client.h"
#include <utility>
#include "base/check.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/not_fatal_until.h"
#include "base/task/single_thread_task_runner.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/traced_value.h"
#include "components/safe_browsing/core/common/features.h"
#include "components/subresource_filter/content/browser/safe_browsing_page_activation_throttle.h"
#include "components/subresource_filter/content/browser/subresource_filter_safe_browsing_client_request.h"
#include "content/public/browser/browser_thread.h"
namespace subresource_filter {
std::unique_ptr<base::trace_event::TracedValue>
SubresourceFilterSafeBrowsingClient::CheckResult::ToTracedValue() const { … }
SubresourceFilterSafeBrowsingClient::SubresourceFilterSafeBrowsingClient(
scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> database_manager,
base::WeakPtr<SafeBrowsingPageActivationThrottle> throttle,
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> throttle_task_runner)
: … { … }
SubresourceFilterSafeBrowsingClient::~SubresourceFilterSafeBrowsingClient() { … }
void SubresourceFilterSafeBrowsingClient::CheckUrl(const GURL& url,
size_t request_id,
base::TimeTicks start_time) { … }
void SubresourceFilterSafeBrowsingClient::OnCheckBrowseUrlResult(
SubresourceFilterSafeBrowsingClientRequest* request,
const CheckResult& check_result) { … }
}