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

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

Issue 590333002: Replace usage of basictypes.h with a combination of stdint.h and base/macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 3 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_EV_WHITELIST_COMPONENT_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_
7 7
8 #include <stdint.h>
8 #include <string> 9 #include <string>
9 #include <vector> 10 #include <vector>
10 11
11 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/macros.h"
12 #include "base/values.h" 14 #include "base/values.h"
13 #include "components/component_updater/default_component_installer.h" 15 #include "components/component_updater/default_component_installer.h"
14 16
15 namespace component_updater { 17 namespace component_updater {
16 18
17 class ComponentUpdateService; 19 class ComponentUpdateService;
18 20
19 class EVWhitelistComponentInstallerTraits : public ComponentInstallerTraits { 21 class EVWhitelistComponentInstallerTraits : public ComponentInstallerTraits {
20 public: 22 public:
21 EVWhitelistComponentInstallerTraits(); 23 EVWhitelistComponentInstallerTraits();
22 virtual ~EVWhitelistComponentInstallerTraits() {} 24 virtual ~EVWhitelistComponentInstallerTraits() {}
23 25
24 private: 26 private:
25 // The following methods override ComponentInstallerTraits. 27 // The following methods override ComponentInstallerTraits.
26 virtual bool CanAutoUpdate() const OVERRIDE; 28 virtual bool CanAutoUpdate() const OVERRIDE;
27 virtual bool OnCustomInstall(const base::DictionaryValue& manifest, 29 virtual bool OnCustomInstall(const base::DictionaryValue& manifest,
28 const base::FilePath& install_dir) OVERRIDE; 30 const base::FilePath& install_dir) OVERRIDE;
29 virtual bool VerifyInstallation( 31 virtual bool VerifyInstallation(
30 const base::FilePath& install_dir) const OVERRIDE; 32 const base::FilePath& install_dir) const OVERRIDE;
31 virtual void ComponentReady( 33 virtual void ComponentReady(
32 const base::Version& version, 34 const base::Version& version,
33 const base::FilePath& path, 35 const base::FilePath& path,
34 scoped_ptr<base::DictionaryValue> manifest) OVERRIDE; 36 scoped_ptr<base::DictionaryValue> manifest) OVERRIDE;
35 virtual base::FilePath GetBaseDirectory() const OVERRIDE; 37 virtual base::FilePath GetBaseDirectory() const OVERRIDE;
36 virtual void GetHash(std::vector<uint8>* hash) const OVERRIDE; 38 virtual void GetHash(std::vector<uint8_t>* hash) const OVERRIDE;
37 virtual std::string GetName() const OVERRIDE; 39 virtual std::string GetName() const OVERRIDE;
38 40
39 static base::FilePath GetInstalledPath(const base::FilePath& base); 41 static base::FilePath GetInstalledPath(const base::FilePath& base);
40 42
41 DISALLOW_COPY_AND_ASSIGN(EVWhitelistComponentInstallerTraits); 43 DISALLOW_COPY_AND_ASSIGN(EVWhitelistComponentInstallerTraits);
42 }; 44 };
43 45
44 // Call once during startup to make the component update service aware of 46 // Call once during startup to make the component update service aware of
45 // the EV whitelist. 47 // the EV whitelist.
46 void RegisterEVWhitelistComponent(ComponentUpdateService* cus); 48 void RegisterEVWhitelistComponent(ComponentUpdateService* cus);
47 49
48 } // namespace component_updater 50 } // namespace component_updater
49 51
50 #endif // CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_ 52 #endif // CHROME_BROWSER_COMPONENT_UPDATER_EV_WHITELIST_COMPONENT_INSTALLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698