command_line_config_policy.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #ifndef COMPONENTS_UPDATE_CLIENT_COMMAND_LINE_CONFIG_POLICY_H_
  5. #define COMPONENTS_UPDATE_CLIENT_COMMAND_LINE_CONFIG_POLICY_H_
  6. class GURL;
  7. namespace update_client {
  8. // This class provides additional settings from command line switches to the
  9. // main configurator.
  10. class CommandLineConfigPolicy {
  11. public:
  12. // If true, background downloads are enabled.
  13. virtual bool BackgroundDownloadsEnabled() const;
  14. // If true, differential updates are enabled.
  15. virtual bool DeltaUpdatesEnabled() const;
  16. // If true, speed up the initial update checking.
  17. virtual bool FastUpdate() const;
  18. // If true, pings are enabled. Pings are the requests sent to the update
  19. // server that report the success or failure of installs or update attempts.
  20. virtual bool PingsEnabled() const;
  21. // If true, add "testrequest" attribute to update check requests.
  22. virtual bool TestRequest() const;
  23. // The override URL for updates. Can be empty.
  24. virtual GURL UrlSourceOverride() const;
  25. // If non-zero, time interval in seconds until the first component
  26. // update check.
  27. virtual double InitialDelay() const;
  28. virtual ~CommandLineConfigPolicy() = default;
  29. };
  30. } // namespace update_client
  31. #endif // COMPONENTS_UPDATE_CLIENT_COMMAND_LINE_CONFIG_POLICY_H_