Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Side by Side Diff: chrome/browser/component_updater/recovery_component_installer.h

Issue 325433002: Elevated install of recovery component (UI part). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
9
8 class PrefRegistrySimple; 10 class PrefRegistrySimple;
9 class PrefService; 11 class PrefService;
10 12
11 namespace component_updater { 13 namespace component_updater {
12 14
13 class ComponentUpdateService; 15 class ComponentUpdateService;
14 16
15 // Component update registration for the recovery component. The job of the 17 // Component update registration for the recovery component. The job of the
16 // 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
17 // update installation. This is a last resort safety mechanism. 19 // update installation. This is a last resort safety mechanism.
18 void RegisterRecoveryComponent(ComponentUpdateService* cus, PrefService* prefs); 20 void RegisterRecoveryComponent(ComponentUpdateService* cus, PrefService* prefs);
19 21
20 // Register user preferences related to the recovery component. 22 // Register user preferences related to the recovery component.
21 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry); 23 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry);
22 24
25 // When |elevation_allowed|, launches an elevated process to do recovery.
26 // |callback| is called when the preference flag is set for external consumer
27 // to check.
28 void StartElevatedRecoveryProcess(
29 PrefService* prefs, bool elevation_allowed, const base::Closure& callback);
30
23 } // namespace component_updater 31 } // namespace component_updater
24 32
25 #endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_ 33 #endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_notification_types.h ('k') | chrome/browser/component_updater/recovery_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698