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 // Register will 1) register with the component updater, 2) save a preference |
| 16 // in |prefs| identifying that an attempt to execute the reporter tool was made. |
| 17 void RegisterSwReporterComponent(ComponentUpdateService* cus, |
| 18 PrefService* prefs); |
| 19 |
| 20 // MaybeRegister will only register with the component updater if the preference |
| 21 // is set in |prefs|, identifying that an attempt to execute the reporter tool |
| 22 // has already been made by caling RegisterSwReporterComponent above, and the |
| 23 // max number of retries has not been reached yet. |
| 24 void MaybeRegisterSwReporterComponent(ComponentUpdateService* cus, |
| 25 PrefService* prefs); |
| 26 |
| 27 // Register user preferences related to the SwReporter component. |
| 28 void RegisterPrefsForSwReporterComponent(PrefRegistrySimple* registry); |
| 29 |
| 30 } // namespace component_updater |
| 31 |
| 32 #endif // CHROME_BROWSER_COMPONENT_UPDATER_SW_REPORTER_COMPONENT_INSTALLER_WIN_
H_ |
OLD | NEW |