| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual std::string GetName() const OVERRIDE; | 53 virtual std::string GetName() const OVERRIDE; |
| 54 | 54 |
| 55 static base::FilePath GetInstalledPath(const base::FilePath& base); | 55 static base::FilePath GetInstalledPath(const base::FilePath& base); |
| 56 | 56 |
| 57 // Sets the path to the CLD data file. Called internally once a valid CLD | 57 // Sets the path to the CLD data file. Called internally once a valid CLD |
| 58 // data file has been observed. The implementation of this method is | 58 // data file has been observed. The implementation of this method is |
| 59 // responsible for configuring the CLD data source. | 59 // responsible for configuring the CLD data source. |
| 60 // This method is threadsafe. | 60 // This method is threadsafe. |
| 61 static void SetLatestCldDataFile(const base::FilePath& path); | 61 static void SetLatestCldDataFile(const base::FilePath& path); |
| 62 | 62 |
| 63 // Allows testing code to detect the file path that was ultimately set in |
| 64 // SetLatestCldDataFile. |
| 65 static base::FilePath GetLatestCldDataFile_ForTest(); |
| 66 |
| 63 DISALLOW_COPY_AND_ASSIGN(CldComponentInstallerTraits); | 67 DISALLOW_COPY_AND_ASSIGN(CldComponentInstallerTraits); |
| 64 }; | 68 }; |
| 65 | 69 |
| 66 // Call once during startup to make the component update service aware of | 70 // Call once during startup to make the component update service aware of |
| 67 // the CLD component. | 71 // the CLD component. |
| 68 void RegisterCldComponent(ComponentUpdateService* cus); | 72 void RegisterCldComponent(ComponentUpdateService* cus); |
| 69 | 73 |
| 70 } // namespace component_updater | 74 } // namespace component_updater |
| 71 | 75 |
| 72 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ | 76 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ |
| OLD | NEW |