Index: chrome/browser/profiles/profile_avatar_icon_util.h |
diff --git a/chrome/browser/profiles/profile_avatar_icon_util.h b/chrome/browser/profiles/profile_avatar_icon_util.h |
index 99ca49b298054600166cd23829085cfa76f523b2..d0886482015fe3b94de3bc6999e17293b93869fa 100644 |
--- a/chrome/browser/profiles/profile_avatar_icon_util.h |
+++ b/chrome/browser/profiles/profile_avatar_icon_util.h |
@@ -17,6 +17,7 @@ namespace gfx { |
class Image; |
} |
+class GURL; |
class SkBitmap; |
namespace profiles { |
@@ -91,6 +92,15 @@ bool IsDefaultAvatarIconIndex(size_t index); |
// is, returns true and its index through |icon_index|. If not, returns false. |
bool IsDefaultAvatarIconUrl(const std::string& icon_url, size_t *icon_index); |
+// Given an image URL this function builds a new URL set to |size|. |
+// For example, if |size| was set to 256 and |old_url| was either: |
+// https://example.com/--Abc/AAAAAAAAAAI/AAAAAAAAACQ/Efg/photo.jpg |
+// or |
+// https://example.com/--Abc/AAAAAAAAAAI/AAAAAAAAACQ/Efg/s64-c/photo.jpg |
+// then return value in |new_url| would be: |
+// https://example.com/--Abc/AAAAAAAAAAI/AAAAAAAAACQ/Efg/s256-c/photo.jpg |
+bool GetImageURLWithSize(const GURL& old_url, int size, GURL* new_url); |
sky
2015/12/04 00:29:21
I was confused by 'size' here. ThumbnailSize would
anthonyvd
2015/12/04 22:42:06
Done.
|
+ |
} // namespace profiles |
#endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ |