Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_ |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 | 9 |
| 10 class PrefRegistrySimple; | 10 class PrefRegistrySimple; |
| 11 class PrefService; | 11 class PrefService; |
| 12 | 12 |
| 13 namespace component_updater { | 13 namespace component_updater { |
| 14 | 14 |
| 15 class ComponentUpdateService; | 15 class ComponentUpdateService; |
| 16 | 16 |
| 17 // Component update registration for the recovery component. The job of the | 17 // Component update registration for the recovery component. The job of the |
| 18 // recovery component is to repair the chrome installation or repair the Google | 18 // recovery component is to repair the chrome installation or repair the Google |
| 19 // update installation. This is a last resort safety mechanism. | 19 // update installation. This is a last resort safety mechanism. |
| 20 void RegisterRecoveryComponent(ComponentUpdateService* cus, PrefService* prefs); | 20 void RegisterRecoveryComponent(ComponentUpdateService* cus, PrefService* prefs); |
| 21 | 21 |
| 22 // Registers user preferences related to the recovery component. | 22 // Registers user preferences related to the recovery component. |
| 23 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry); | 23 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry); |
| 24 | 24 |
| 25 // Notifies recovery component that agreed elevated install, so that it | 25 // Notifies recovery component that user agreed elevated install, so that it |
|
Sorin Jianu
2014/12/05 02:10:36
the user
xiaoling
2014/12/05 19:45:56
Done.
| |
| 26 // can launches an elevated install process. After that, clears | 26 // can launches an elevated install process. After that, clears |
| 27 // preference flag prefs::kRecoveryComponentNeedsElevation. | 27 // preference flag prefs::kRecoveryComponentNeedsElevation. |
| 28 // Note: the function is yet to be implemented. | |
| 29 void AcceptedElevatedRecoveryInstall(PrefService* prefs); | 28 void AcceptedElevatedRecoveryInstall(PrefService* prefs); |
| 30 | 29 |
| 31 // Notifies recovery component that elevated install is declined, so that it can | 30 // Notifies recovery component that elevated install is declined. |
|
Sorin Jianu
2014/12/05 02:10:36
// Notifies the recovery component that the elevat
xiaoling
2014/12/05 19:45:56
Done.
| |
| 32 // removes the setup files. After that, clears preference flag | 31 // Clears preference flag prefs::kRecoveryComponentNeedsElevation. |
|
Sorin Jianu
2014/12/05 02:10:36
Clears the flag prefs::kRecoveryComponentNeedsElev
xiaoling
2014/12/05 19:45:57
Done.
| |
| 33 // prefs::kRecoveryComponentNeedsElevation. | |
| 34 // Note: the function is yet to be implemented. | |
| 35 void DeclinedElevatedRecoveryInstall(PrefService* prefs); | 32 void DeclinedElevatedRecoveryInstall(PrefService* prefs); |
| 36 | 33 |
| 37 } // namespace component_updater | 34 } // namespace component_updater |
| 38 | 35 |
| 39 #endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_ | 36 #endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_ |
| OLD | NEW |