OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 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 CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_COMPONENT_INSTALLER_WIN_H_ |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_COMPONENT_INSTALLER_WIN_H_ |
| 7 |
| 8 class PrefRegistrySimple; |
| 9 class PrefService; |
| 10 |
| 11 namespace component_updater { |
| 12 |
| 13 class ComponentUpdateService; |
| 14 |
| 15 // Execute will execute the SwReporter if one is available, otherwise 1) |
| 16 // register with the component updater, 2) save a preference in |prefs| |
| 17 // identifying that an attempt to execute the reporter tool was made, so that |
| 18 // calls to ExecutePending below will be able to continue the work if it doesn't |
| 19 // complete before the Chrome session ends. It will also allow the component |
| 20 // updater to know if there is a pending execution or not when an update |
| 21 // happens. |
| 22 void ExecuteSwReporterComponent(ComponentUpdateService* cus, |
| 23 PrefService* prefs); |
| 24 |
| 25 // ExecutePending will only register/execute the SwReporter component if a |
| 26 // preference is set in |prefs|, identifying that an attempt to register/execute |
| 27 // the SwReporter has already been made by calling ExecuteSwReporterComponent |
| 28 // above. But only if the max number of retries has not been reached yet. |
| 29 void ExecutePendingSwReporterComponent(ComponentUpdateService* cus, |
| 30 PrefService* prefs); |
| 31 |
| 32 // Register user preferences related to the SwReporter component. |
| 33 void RegisterPrefsForSwReporterComponent(PrefRegistrySimple* registry); |
| 34 |
| 35 } // namespace component_updater |
| 36 |
| 37 #endif // CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_COMPONENT_INSTALLER_WIN_
H_ |
OLD | NEW |