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..18d37647c1233d1f1563ad80a019831de0f56c2c 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,16 @@ 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 |thumbnail_size|. |
+// For example, if |thumbnail_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 GetImageURLWithThumbnailSize( |
+ const GURL& old_url, int thumbnail_size, GURL* new_url); |
+ |
} // namespace profiles |
#endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_ |