#include "components/safety_check/update_check_helper.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "components/safety_check/url_constants.h"
#include "net/base/load_flags.h"
#include "net/http/http_status_code.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "url/gurl.h"
namespace safety_check {
namespace {
constexpr base::TimeDelta kConnectionTimeout = …;
constexpr int kMaxRetries = …;
const net::NetworkTrafficAnnotationTag kTrafficAnnotation = …;
}
UpdateCheckHelper::UpdateCheckHelper(
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory)
: … { … }
UpdateCheckHelper::~UpdateCheckHelper() = default;
void UpdateCheckHelper::CheckConnectivity(
ConnectivityCheckCallback connection_check_callback) { … }
UpdateCheckHelper::UpdateCheckHelper() = default;
void UpdateCheckHelper::OnURLLoadComplete(
scoped_refptr<net::HttpResponseHeaders> headers) { … }
}