Chromium Code Reviews| 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_INSTALLER_WIN_H_ | |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_ | |
| 7 | |
| 8 class PrefRegistrySimple; | |
| 9 class PrefService; | |
| 10 | |
| 11 namespace component_updater { | |
| 12 | |
| 13 class ComponentUpdateService; | |
| 14 | |
| 15 // Execute the SwReporter if one is available, otherwise 1) register with the | |
| 16 // component updater, 2) save a preference in |prefs| identifying that an | |
| 17 // attempt to execute the reporter tool was made, so that calls to | |
| 18 // ExecutePending below will be able to continue the work if it doesn't complete | |
| 19 // before the Chrome session ends. It will also allow the component updater to | |
| 20 // know if there is a pending execution or not when an update happens. | |
|
Sorin Jianu
2014/06/20 05:37:39
Do we need to make any statements about the thread
MAD
2014/06/20 14:40:15
Done.
| |
| 21 void ExecuteSwReporter(ComponentUpdateService* cus, PrefService* prefs); | |
| 22 | |
| 23 // ExecutePending will only register/execute the SwReporter if a preference is | |
| 24 // set in |prefs|, identifying that an attempt to register/execute the | |
| 25 // SwReporter has already been made by calling ExecuteSwReporter above. But only | |
| 26 // if the max number of retries has not been reached yet. | |
| 27 void ExecutePendingSwReporter(ComponentUpdateService* cus, PrefService* prefs); | |
| 28 | |
| 29 // Register user preferences related to the SwReporter. | |
| 30 void RegisterPrefsForSwReporter(PrefRegistrySimple* registry); | |
| 31 | |
| 32 } // namespace component_updater | |
| 33 | |
| 34 #endif // CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_INSTALLER_WIN_H_ | |
| OLD | NEW |