| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // This method is threadsafe. | 61 // This method is threadsafe. |
| 62 static void SetLatestCldDataFile(const base::FilePath& path); | 62 static void SetLatestCldDataFile(const base::FilePath& path); |
| 63 | 63 |
| 64 // Returns the file path that was most recently set in SetLatestCldDataFile. | 64 // Returns the file path that was most recently set in SetLatestCldDataFile. |
| 65 static base::FilePath GetLatestCldDataFile(); | 65 static base::FilePath GetLatestCldDataFile(); |
| 66 | 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(CldComponentInstallerTraits); | 67 DISALLOW_COPY_AND_ASSIGN(CldComponentInstallerTraits); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 // 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 |
| 71 // the CLD component. | 71 // the CLD component. This method does nothing if the configured CLD data source |
| 72 // is not the "Component" data source. |
| 72 void RegisterCldComponent(ComponentUpdateService* cus); | 73 void RegisterCldComponent(ComponentUpdateService* cus); |
| 73 | 74 |
| 74 } // namespace component_updater | 75 } // namespace component_updater |
| 75 | 76 |
| 76 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ | 77 #endif // CHROME_BROWSER_COMPONENT_UPDATER_CLD_COMPONENT_INSTALLER_H_ |
| OLD | NEW |