Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Side by Side Diff: components/crx_file/id_util.h

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/crx_file/crx_file.cc ('k') | components/crx_file/id_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/crx_file/crx_file.cc ('k') | components/crx_file/id_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698