| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ | 5 #ifndef COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ |
| 6 #define COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ | 6 #define COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 bool require_encryption); | 31 bool require_encryption); |
| 32 | 32 |
| 33 ~ConfiguratorImpl(); | 33 ~ConfiguratorImpl(); |
| 34 | 34 |
| 35 // Delay in seconds from calling Start() to the first update check. | 35 // Delay in seconds from calling Start() to the first update check. |
| 36 int InitialDelay() const; | 36 int InitialDelay() const; |
| 37 | 37 |
| 38 // Delay in seconds to every subsequent update check. 0 means don't check. | 38 // Delay in seconds to every subsequent update check. 0 means don't check. |
| 39 int NextCheckDelay() const; | 39 int NextCheckDelay() const; |
| 40 | 40 |
| 41 // Delay in seconds from each task step. Used to smooth out CPU/IO usage. | |
| 42 int StepDelay() const; | |
| 43 | |
| 44 // Minimum delta time in seconds before an on-demand check is allowed for the | 41 // Minimum delta time in seconds before an on-demand check is allowed for the |
| 45 // same component. | 42 // same component. |
| 46 int OnDemandDelay() const; | 43 int OnDemandDelay() const; |
| 47 | 44 |
| 48 // The time delay in seconds between applying updates for different | 45 // The time delay in seconds between applying updates for different |
| 49 // components. | 46 // components. |
| 50 int UpdateDelay() const; | 47 int UpdateDelay() const; |
| 51 | 48 |
| 52 // The URLs for the update checks. The URLs are tried in order, the first one | 49 // The URLs for the update checks. The URLs are tried in order, the first one |
| 53 // that succeeds wins. | 50 // that succeeds wins. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 bool deltas_enabled_; | 94 bool deltas_enabled_; |
| 98 bool background_downloads_enabled_; | 95 bool background_downloads_enabled_; |
| 99 bool require_encryption_; | 96 bool require_encryption_; |
| 100 | 97 |
| 101 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); | 98 DISALLOW_COPY_AND_ASSIGN(ConfiguratorImpl); |
| 102 }; | 99 }; |
| 103 | 100 |
| 104 } // namespace component_updater | 101 } // namespace component_updater |
| 105 | 102 |
| 106 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ | 103 #endif // COMPONENTS_COMPONENT_UPDATER_CONFIGURATOR_IMPL_H_ |
| OLD | NEW |