Add ICU message format support
[chromium-blink-merge.git] / chrome / browser / component_updater / recovery_component_installer.h
blobc2ef7f1fd0343d1c5c54c009abed61bda5154c51
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_
8 #include "base/callback_forward.h"
10 class PrefRegistrySimple;
11 class PrefService;
13 namespace component_updater {
15 class ComponentUpdateService;
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
19 // update installation. This is a last resort safety mechanism.
20 void RegisterRecoveryComponent(ComponentUpdateService* cus, PrefService* prefs);
22 // Registers user preferences related to the recovery component.
23 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry);
25 // Notifies the recovery component that the user has accepted the elevation
26 // prompt. Clears the state of prefs::kRecoveryComponentNeedsElevation after the
27 // notification.
28 void AcceptedElevatedRecoveryInstall(PrefService* prefs);
30 // Notifies recovery component that the elevated install has been declined.
31 // Clears the flag prefs::kRecoveryComponentNeedsElevation.
32 void DeclinedElevatedRecoveryInstall(PrefService* prefs);
34 } // namespace component_updater
36 #endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_