blob: e2c037012f5f71f910543f3a5f6324ea43cbb1e5 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/macros.h"
#include "components/update_client/command_line_config_policy.h"
#include "url/gurl.h"
namespace base {
class CommandLine;
namespace component_updater {
// Component updater config policy implementation.
class ComponentUpdaterCommandLineConfigPolicy final
: public update_client::CommandLineConfigPolicy {
explicit ComponentUpdaterCommandLineConfigPolicy(
const base::CommandLine* cmdline);
// update_client::CommandLineConfigPolicy overrides.
bool BackgroundDownloadsEnabled() const override;
bool DeltaUpdatesEnabled() const override;
bool FastUpdate() const override;
bool PingsEnabled() const override;
bool TestRequest() const override;
GURL UrlSourceOverride() const override;
int InitialDelay() const override;
bool background_downloads_enabled_ = false;
bool deltas_enabled_ = true;
bool fast_update_ = false;
bool pings_enabled_ = true;
bool test_request_ = false;
// If non-zero, time interval in seconds until the first component
// update check.
int initial_delay_ = 0;
GURL url_source_override_;
} // namespace component_updater