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

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

Issue 2661113003: Skeleton mechanical impl. for the RecoveryImprovedComponent. (Closed)
Patch Set: . Created 3 years, 10 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
OLDNEW
(Empty)
1 // Copyright (c) 2017 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_RECOVERY_IMPROVED_COMPONENT_INSTALLER_H _
6 #define CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_IMPROVED_COMPONENT_INSTALLER_H _
7
8 #include <memory>
9 #include <string>
10 #include <vector>
11
12 #include "components/component_updater/default_component_installer.h"
13
14 class PrefRegistrySimple;
15 class PrefService;
16
17 namespace component_updater {
18
19 class ComponentUpdateService;
20
21 class RecoveryImprovedInstallerTraits : public ComponentInstallerTraits {
22 public:
23 explicit RecoveryImprovedInstallerTraits(PrefService* prefs);
24 ~RecoveryImprovedInstallerTraits() override;
25
26 private:
27 friend class RecoveryImprovedInstallerTest;
28
29 // ComponentInstallerTraits implementation.
30 bool SupportsGroupPolicyEnabledComponentUpdates() const override;
31 bool RequiresNetworkEncryption() const override;
32 update_client::CrxInstaller::Result OnCustomInstall(
33 const base::DictionaryValue& manifest,
34 const base::FilePath& install_dir) override;
35 bool VerifyInstallation(const base::DictionaryValue& manifest,
36 const base::FilePath& install_dir) const override;
37 void ComponentReady(const base::Version& version,
38 const base::FilePath& install_dir,
39 std::unique_ptr<base::DictionaryValue> manifest) override;
40 base::FilePath GetRelativeInstallDir() const override;
41 void GetHash(std::vector<uint8_t>* hash) const override;
42 std::string GetName() const override;
43 update_client::InstallerAttributes GetInstallerAttributes() const override;
44 std::vector<std::string> GetMimeTypes() const override;
45
46 PrefService* prefs_;
47
48 DISALLOW_COPY_AND_ASSIGN(RecoveryImprovedInstallerTraits);
49 };
50
51 void RegisterRecoveryImprovedComponent(ComponentUpdateService* cus,
52 PrefService* prefs);
53
54 // Registers user preferences related to the recovery component.
55 void RegisterPrefsForRecoveryImprovedComponent(PrefRegistrySimple* registry);
56
57 } // namespace component_updater
58
59 #endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_IMPROVED_COMPONENT_INSTALLE R_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698