OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMPONENT_UPDATER_UTILS_H_ | 5 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_ |
6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_ | 6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 struct CrxComponent; | 10 struct CrxComponent; |
11 class GURL; | 11 class GURL; |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 class FilePath; | 14 class FilePath; |
15 } | 15 } |
16 | 16 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // parent directory is not empty, the function ignores deleting the directory. | 80 // parent directory is not empty, the function ignores deleting the directory. |
81 // Returns true if the file and the empty directory are deleted. | 81 // Returns true if the file and the empty directory are deleted. |
82 bool DeleteFileAndEmptyParentDirectory(const base::FilePath& filepath); | 82 bool DeleteFileAndEmptyParentDirectory(const base::FilePath& filepath); |
83 | 83 |
84 // Returns the component id of the |component|. The component id is in a | 84 // Returns the component id of the |component|. The component id is in a |
85 // format similar with the format of an extension id. | 85 // format similar with the format of an extension id. |
86 std::string GetCrxComponentID(const CrxComponent& component); | 86 std::string GetCrxComponentID(const CrxComponent& component); |
87 | 87 |
88 } // namespace component_updater | 88 } // namespace component_updater |
89 | 89 |
90 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_ | 90 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_UTILS_H_ |
OLD | NEW |