Minh X. Nguyen | 55afbe4 | 2018-05-18 22:04:26 | [diff] [blame] | 1 | // 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 | |
| 8 | class GURL; |
| 9 | |
| 10 | namespace update_client { |
| 11 | |
| 12 | // This class provides additional settings from command line switches to the |
| 13 | // main configurator. |
| 14 | class 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 Jianu | c27ef6f | 2018-06-19 14:42:55 | [diff] [blame] | 35 | // If non-zero, time interval in seconds until the first component |
| 36 | // update check. |
| 37 | virtual int InitialDelay() const; |
| 38 | |
Sorin Jianu | 3088115 | 2020-03-16 14:31:19 | [diff] [blame] | 39 | virtual ~CommandLineConfigPolicy() = default; |
Minh X. Nguyen | 55afbe4 | 2018-05-18 22:04:26 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | } // namespace update_client |
| 43 | |
| 44 | #endif // COMPONENTS_UPDATE_CLIENT_COMMAND_LINE_CONFIG_POLICY_H_ |