#include "components/policy/content/safe_sites_navigation_throttle.h"
#include "base/functional/bind.h"
#include "components/policy/content/safe_search_service.h"
#include "components/url_matcher/url_util.h"
#include "content/public/browser/navigation_handle.h"
#include "url/gurl.h"
SafeSitesNavigationThrottle::SafeSitesNavigationThrottle(
content::NavigationHandle* navigation_handle,
content::BrowserContext* context)
: … { … }
SafeSitesNavigationThrottle::SafeSitesNavigationThrottle(
content::NavigationHandle* navigation_handle,
content::BrowserContext* context,
DeferredResultCallback deferred_result_callback)
: … { … }
SafeSitesNavigationThrottle::SafeSitesNavigationThrottle(
content::NavigationHandle* navigation_handle,
content::BrowserContext* context,
std::string_view safe_sites_error_page_content)
: … { … }
SafeSitesNavigationThrottle::~SafeSitesNavigationThrottle() = default;
content::NavigationThrottle::ThrottleCheckResult
SafeSitesNavigationThrottle::WillStartRequest() { … }
content::NavigationThrottle::ThrottleCheckResult
SafeSitesNavigationThrottle::WillRedirectRequest() { … }
const char* SafeSitesNavigationThrottle::GetNameForLogging() { … }
void SafeSitesNavigationThrottle::CheckSafeSearchCallback(bool is_safe) { … }
void SafeSitesNavigationThrottle::OnDeferredResult(
bool is_safe,
ThrottleCheckResult cancel_result) { … }
content::NavigationThrottle::ThrottleCheckResult
SafeSitesNavigationThrottle::CreateCancelResult() const { … }