blob: 27ccc20fc384ae793f50e855a82a6b2eaf392335 [file] [log] [blame]
Minh X. Nguyen55afbe42018-05-18 22:04:261// Copyright 2018 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef COMPONENTS_UPDATE_CLIENT_COMMAND_LINE_CONFIG_POLICY_H_
6#define COMPONENTS_UPDATE_CLIENT_COMMAND_LINE_CONFIG_POLICY_H_
7
8class GURL;
9
10namespace update_client {
11
12// This class provides additional settings from command line switches to the
13// main configurator.
14class CommandLineConfigPolicy {
15 public:
16 // If true, background downloads are enabled.
17 virtual bool BackgroundDownloadsEnabled() const;
18
19 // If true, differential updates are enabled.
20 virtual bool DeltaUpdatesEnabled() const;
21
22 // If true, speed up the initial update checking.
23 virtual bool FastUpdate() const;
24
25 // If true, pings are enabled. Pings are the requests sent to the update
26 // server that report the success or failure of installs or update attempts.
27 virtual bool PingsEnabled() const;
28
29 // If true, add "testrequest" attribute to update check requests.
30 virtual bool TestRequest() const;
31
32 // The override URL for updates. Can be empty.
33 virtual GURL UrlSourceOverride() const;
34
Sorin Jianuc27ef6f2018-06-19 14:42:5535 // If non-zero, time interval in seconds until the first component
36 // update check.
37 virtual int InitialDelay() const;
38
Sorin Jianu30881152020-03-16 14:31:1939 virtual ~CommandLineConfigPolicy() = default;
Minh X. Nguyen55afbe42018-05-18 22:04:2640};
41
42} // namespace update_client
43
44#endif // COMPONENTS_UPDATE_CLIENT_COMMAND_LINE_CONFIG_POLICY_H_