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_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
11 | 13 |
12 namespace base { | 14 namespace base { |
13 class FilePath; | 15 class FilePath; |
14 } | 16 } |
15 | 17 |
16 namespace gfx { | 18 namespace gfx { |
17 class Image; | 19 class Image; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Checks if |index| is a valid avatar icon index | 89 // Checks if |index| is a valid avatar icon index |
88 bool IsDefaultAvatarIconIndex(size_t index); | 90 bool IsDefaultAvatarIconIndex(size_t index); |
89 | 91 |
90 // Checks if the given URL points to one of the default avatar icons. If it | 92 // Checks if the given URL points to one of the default avatar icons. If it |
91 // is, returns true and its index through |icon_index|. If not, returns false. | 93 // is, returns true and its index through |icon_index|. If not, returns false. |
92 bool IsDefaultAvatarIconUrl(const std::string& icon_url, size_t *icon_index); | 94 bool IsDefaultAvatarIconUrl(const std::string& icon_url, size_t *icon_index); |
93 | 95 |
94 } // namespace profiles | 96 } // namespace profiles |
95 | 97 |
96 #endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ | 98 #endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ |
OLD | NEW |