chromium/components/component_updater/configurator_impl.cc

// Copyright 2014 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/component_updater/configurator_impl.h"

#include <algorithm>
#include <optional>
#include <string>
#include <vector>

#include "base/containers/flat_map.h"
#include "base/enterprise_util.h"
#include "base/feature_list.h"
#include "base/functional/callback.h"
#include "base/sequence_checker.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
#include "base/version.h"
#include "build/build_config.h"
#include "components/component_updater/component_updater_switches.h"
#include "components/component_updater/component_updater_url_constants.h"
#include "components/update_client/command_line_config_policy.h"
#include "components/update_client/protocol_handler.h"
#include "components/update_client/utils.h"
#include "components/version_info/version_info.h"
#include "net/base/network_change_notifier.h"
#include "url/gurl.h"

#if BUILDFLAG(IS_WIN)
#include "base/win/win_util.h"
#endif

namespace component_updater {

ConfiguratorImpl::ConfiguratorImpl(
    const update_client::CommandLineConfigPolicy& config_policy,
    bool require_encryption)
    :{}

ConfiguratorImpl::~ConfiguratorImpl() = default;

base::TimeDelta ConfiguratorImpl::InitialDelay() const {}

base::TimeDelta ConfiguratorImpl::NextCheckDelay() const {}

base::TimeDelta ConfiguratorImpl::OnDemandDelay() const {}

base::TimeDelta ConfiguratorImpl::UpdateDelay() const {}

std::vector<GURL> ConfiguratorImpl::UpdateUrl() const {}

std::vector<GURL> ConfiguratorImpl::PingUrl() const {}

const base::Version& ConfiguratorImpl::GetBrowserVersion() const {}

std::string ConfiguratorImpl::GetOSLongName() const {}

base::flat_map<std::string, std::string> ConfiguratorImpl::ExtraRequestParams()
    const {}

std::string ConfiguratorImpl::GetDownloadPreference() const {}

bool ConfiguratorImpl::EnabledDeltas() const {}

bool ConfiguratorImpl::EnabledComponentUpdates() const {}

bool ConfiguratorImpl::EnabledBackgroundDownloader() const {}

bool ConfiguratorImpl::EnabledCupSigning() const {}

// The default implementation for most embedders returns an empty string.
// Desktop embedders, such as the Windows component updater can provide a
// meaningful implementation for this function.
std::string ConfiguratorImpl::GetAppGuid() const {}

std::unique_ptr<update_client::ProtocolHandlerFactory>
ConfiguratorImpl::GetProtocolHandlerFactory() const {}

// Returns a "do nothing" callback which returns an empty updater state.
// This is the correct default for all the embedders except the component
// updater for Chrome on macOS and Windows, which includes a recovery
// component.
update_client::UpdaterStateProvider ConfiguratorImpl::GetUpdaterStateProvider()
    const {}

std::optional<bool> ConfiguratorImpl::IsMachineExternallyManaged() const {}

bool ConfiguratorImpl::IsConnectionMetered() const {}

}  // namespace component_updater