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 COMPONENTS_UPDATE_CLIENT_UTILS_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UTILS_H_ |
6 #define COMPONENTS_UPDATE_CLIENT_UTILS_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <base/memory/scoped_ptr.h> | 9 |
| 10 #include "base/memory/scoped_ptr.h" |
10 | 11 |
11 class GURL; | 12 class GURL; |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 class FilePath; | 15 class FilePath; |
15 } | 16 } |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 class URLFetcher; | 19 class URLFetcher; |
19 class URLFetcherDelegate; | 20 class URLFetcherDelegate; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Returns true if the file and the empty directory are deleted. | 83 // Returns true if the file and the empty directory are deleted. |
83 bool DeleteFileAndEmptyParentDirectory(const base::FilePath& filepath); | 84 bool DeleteFileAndEmptyParentDirectory(const base::FilePath& filepath); |
84 | 85 |
85 // Returns the component id of the |component|. The component id is in a | 86 // Returns the component id of the |component|. The component id is in a |
86 // format similar with the format of an extension id. | 87 // format similar with the format of an extension id. |
87 std::string GetCrxComponentID(const CrxComponent& component); | 88 std::string GetCrxComponentID(const CrxComponent& component); |
88 | 89 |
89 } // namespace update_client | 90 } // namespace update_client |
90 | 91 |
91 #endif // COMPONENTS_UPDATE_CLIENT_UTILS_H_ | 92 #endif // COMPONENTS_UPDATE_CLIENT_UTILS_H_ |
OLD | NEW |