chromium/components/safety_check/update_check_helper.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Request timeout of 5 seconds to not interrupt the completion of Safety check.
// The user can always start a new Safety check if a request times out.
constexpr base::TimeDelta kConnectionTimeout =;

// Maximum number of retries for sending the request.
constexpr int kMaxRetries =;

const net::NetworkTrafficAnnotationTag kTrafficAnnotation =;

}  // namespace

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) {}

}  // namespace safety_check