#include "components/captive_portal/content/captive_portal_tab_reloader.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "components/captive_portal/core/captive_portal_types.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
#include "net/base/net_errors.h"
namespace captive_portal {
namespace {
const int kDefaultSlowSSLTimeSeconds = …;
bool SslNetErrorMayImplyCaptivePortal(int error) { … }
}
CaptivePortalTabReloader::CaptivePortalTabReloader(
CaptivePortalService* captive_portal_service,
content::WebContents* web_contents,
const OpenLoginTabCallback& open_login_tab_callback)
: … { … }
CaptivePortalTabReloader::~CaptivePortalTabReloader() { … }
void CaptivePortalTabReloader::OnLoadStart(bool is_ssl) { … }
void CaptivePortalTabReloader::OnLoadCommitted(
int net_error,
net::ResolveErrorInfo resolve_error_info) { … }
void CaptivePortalTabReloader::OnAbort() { … }
void CaptivePortalTabReloader::OnRedirect(bool is_ssl) { … }
void CaptivePortalTabReloader::OnCaptivePortalResults(
CaptivePortalResult previous_result,
CaptivePortalResult result) { … }
void CaptivePortalTabReloader::OnSSLCertError(const net::SSLInfo& ssl_info) { … }
void CaptivePortalTabReloader::OnSlowSSLConnect() { … }
void CaptivePortalTabReloader::OnSecureDnsNetworkError() { … }
void CaptivePortalTabReloader::SetState(State new_state) { … }
void CaptivePortalTabReloader::ReloadTabIfNeeded() { … }
void CaptivePortalTabReloader::ReloadTab() { … }
void CaptivePortalTabReloader::MaybeOpenCaptivePortalLoginTab() { … }
void CaptivePortalTabReloader::CheckForCaptivePortal() { … }
}