OLD | NEW |
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_CLD_COMPONENT_INSTALLER_H_ | 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ |
6 #define CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ | 6 #define CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 bool OnCustomInstall(const base::DictionaryValue& manifest, | 46 bool OnCustomInstall(const base::DictionaryValue& manifest, |
47 const base::FilePath& install_dir) override; | 47 const base::FilePath& install_dir) override; |
48 bool VerifyInstallation(const base::DictionaryValue& manifest, | 48 bool VerifyInstallation(const base::DictionaryValue& manifest, |
49 const base::FilePath& install_dir) const override; | 49 const base::FilePath& install_dir) const override; |
50 void ComponentReady(const base::Version& version, | 50 void ComponentReady(const base::Version& version, |
51 const base::FilePath& path, | 51 const base::FilePath& path, |
52 scoped_ptr<base::DictionaryValue> manifest) override; | 52 scoped_ptr<base::DictionaryValue> manifest) override; |
53 base::FilePath GetBaseDirectory() const override; | 53 base::FilePath GetBaseDirectory() const override; |
54 void GetHash(std::vector<uint8_t>* hash) const override; | 54 void GetHash(std::vector<uint8_t>* hash) const override; |
55 std::string GetName() const override; | 55 std::string GetName() const override; |
| 56 std::string GetAp() const override; |
56 | 57 |
57 static base::FilePath GetInstalledPath(const base::FilePath& base); | 58 static base::FilePath GetInstalledPath(const base::FilePath& base); |
58 | 59 |
59 // Sets the path to the CLD data file. Called internally once a valid CLD | 60 // Sets the path to the CLD data file. Called internally once a valid CLD |
60 // data file has been observed. The implementation of this method is | 61 // data file has been observed. The implementation of this method is |
61 // responsible for configuring the CLD data source. | 62 // responsible for configuring the CLD data source. |
62 // This method is threadsafe. | 63 // This method is threadsafe. |
63 static void SetLatestCldDataFile(const base::FilePath& path); | 64 static void SetLatestCldDataFile(const base::FilePath& path); |
64 | 65 |
65 // Returns the file path that was most recently set in SetLatestCldDataFile. | 66 // Returns the file path that was most recently set in SetLatestCldDataFile. |
66 static base::FilePath GetLatestCldDataFile(); | 67 static base::FilePath GetLatestCldDataFile(); |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(CldComponentInstallerTraits); | 69 DISALLOW_COPY_AND_ASSIGN(CldComponentInstallerTraits); |
69 }; | 70 }; |
70 | 71 |
71 // Call once during startup to make the component update service aware of | 72 // Call once during startup to make the component update service aware of |
72 // the CLD component. This method does nothing if the configured CLD data source | 73 // the CLD component. This method does nothing if the configured CLD data source |
73 // is not the "Component" data source. | 74 // is not the "Component" data source. |
74 void RegisterCldComponent(ComponentUpdateService* cus); | 75 void RegisterCldComponent(ComponentUpdateService* cus); |
75 | 76 |
76 } // namespace component_updater | 77 } // namespace component_updater |
77 | 78 |
78 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ | 79 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ |
OLD | NEW |