#include "components/component_updater/component_updater_command_line_config_policy.h"
#include <string>
#include <vector>
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/sys_string_conversions.h"
#include "build/build_config.h"
#include "components/component_updater/component_updater_switches.h"
namespace component_updater {
namespace {
const char kSwitchFastUpdate[] = …;
const char kSwitchDisablePings[] = …;
const char kSwitchUrlSource[] = …;
const char kSwitchDisableDeltaUpdates[] = …;
const char kInitialDelay[] = …;
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN)
const char kSwitchDisableBackgroundDownloads[] = "disable-background-downloads";
#endif
std::string GetSwitchArgument(const std::vector<std::string>& vec,
const char* test) { … }
}
const char kSwitchTestRequestParam[] = …;
ComponentUpdaterCommandLineConfigPolicy::
ComponentUpdaterCommandLineConfigPolicy(const base::CommandLine* cmdline) { … }
bool ComponentUpdaterCommandLineConfigPolicy::BackgroundDownloadsEnabled()
const { … }
bool ComponentUpdaterCommandLineConfigPolicy::DeltaUpdatesEnabled() const { … }
bool ComponentUpdaterCommandLineConfigPolicy::FastUpdate() const { … }
bool ComponentUpdaterCommandLineConfigPolicy::PingsEnabled() const { … }
bool ComponentUpdaterCommandLineConfigPolicy::TestRequest() const { … }
GURL ComponentUpdaterCommandLineConfigPolicy::UrlSourceOverride() const { … }
base::TimeDelta ComponentUpdaterCommandLineConfigPolicy::InitialDelay() const { … }
}