| 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_CRX_FILE_ID_UTIL_H_ | 5 #ifndef COMPONENTS_CRX_FILE_ID_UTIL_H_ |
| 6 #define COMPONENTS_CRX_FILE_ID_UTIL_H_ | 6 #define COMPONENTS_CRX_FILE_ID_UTIL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 namespace base { | 12 namespace base { |
| 11 class FilePath; | 13 class FilePath; |
| 12 } | 14 } |
| 13 | 15 |
| 14 namespace crx_file { | 16 namespace crx_file { |
| 15 namespace id_util { | 17 namespace id_util { |
| 16 | 18 |
| 17 // The number of bytes in a legal id. | 19 // The number of bytes in a legal id. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 33 base::FilePath MaybeNormalizePath(const base::FilePath& path); | 35 base::FilePath MaybeNormalizePath(const base::FilePath& path); |
| 34 | 36 |
| 35 // Checks if |id| is a valid extension-id. Extension-ids are used for anything | 37 // Checks if |id| is a valid extension-id. Extension-ids are used for anything |
| 36 // that comes in a CRX file, including apps, extensions, and components. | 38 // that comes in a CRX file, including apps, extensions, and components. |
| 37 bool IdIsValid(const std::string& id); | 39 bool IdIsValid(const std::string& id); |
| 38 | 40 |
| 39 } // namespace id_util | 41 } // namespace id_util |
| 40 } // namespace crx_file | 42 } // namespace crx_file |
| 41 | 43 |
| 42 #endif // COMPONENTS_CRX_FILE_ID_UTIL_H_ | 44 #endif // COMPONENTS_CRX_FILE_ID_UTIL_H_ |
| OLD | NEW |