Chromium Code Reviews| Index: components/favicon_base/favicon_types.h |
| diff --git a/components/favicon_base/favicon_types.h b/components/favicon_base/favicon_types.h |
| index 6a399cefe0ebb4e03e6000ea79e6480a60862805..47c63aeb6fa0aca7d02999e5c5db8b622e90b4bc 100644 |
| --- a/components/favicon_base/favicon_types.h |
| +++ b/components/favicon_base/favicon_types.h |
| @@ -99,6 +99,26 @@ struct LargeIconResult { |
| std::unique_ptr<FallbackIconStyle> fallback_icon_style; |
| }; |
| +// Result returned by LargeIconService::GetLargeIconImageOrFallbackStyle(). |
| +// Contains either the gfx::Image if the favicon database has a sufficiently |
| +// large favicon bitmap and the style of the fallback icon otherwise. |
| +struct LargeIconImageResult { |
| + explicit LargeIconImageResult(const gfx::Image& image_in); |
| + |
| + // Takes ownership of |fallback_icon_style_in|. |
| + explicit LargeIconImageResult(FallbackIconStyle* fallback_icon_style_in); |
|
jkrcal
2017/03/30 13:10:46
Orthogonal to this CL: I find taking ownership by
pkotwicz
2017/03/30 19:14:23
That would be nice. However, it is not very pressi
jkrcal
2017/03/31 12:31:11
Acknowledged.
|
| + |
| + ~LargeIconImageResult(); |
| + |
| + // The image from the favicon database if the database has a sufficiently |
| + // large one. |
| + gfx::Image image; |
| + |
| + // The fallback icon style if a sufficiently large icon isn't available. This |
| + // uses the dominant color of a smaller icon as the background if available. |
| + std::unique_ptr<FallbackIconStyle> fallback_icon_style; |
| +}; |
| + |
| } // namespace favicon_base |
| #endif // COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_ |