#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 { … }
std::string ConfiguratorImpl::GetAppGuid() const { … }
std::unique_ptr<update_client::ProtocolHandlerFactory>
ConfiguratorImpl::GetProtocolHandlerFactory() const { … }
update_client::UpdaterStateProvider ConfiguratorImpl::GetUpdaterStateProvider()
const { … }
std::optional<bool> ConfiguratorImpl::IsMachineExternallyManaged() const { … }
bool ConfiguratorImpl::IsConnectionMetered() const { … }
}