| Index: components/favicon_base/favicon_types.h
|
| diff --git a/components/favicon_base/favicon_types.h b/components/favicon_base/favicon_types.h
|
| index ea6475429d93d931fb9f511fbe24adaa16ccd38e..b8bfc3ed5880bd574b992ef05799d5961087890b 100644
|
| --- a/components/favicon_base/favicon_types.h
|
| +++ b/components/favicon_base/favicon_types.h
|
| @@ -6,6 +6,8 @@
|
| #define COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_
|
|
|
| #include "base/memory/ref_counted_memory.h"
|
| +#include "components/favicon_base/fallback_icon_style.h"
|
| +#include "third_party/skia/include/core/SkColor.h"
|
| #include "ui/gfx/geometry/size.h"
|
| #include "ui/gfx/image/image.h"
|
| #include "url/gurl.h"
|
| @@ -72,6 +74,20 @@ struct FaviconRawBitmapResult {
|
| // HistoryBackend::SetFavicons().
|
| typedef FaviconRawBitmapResult FaviconRawBitmapData;
|
|
|
| +// Result returned when accessing a large icon, which is either a bitmap if
|
| +// one was available; or the style of the fallback icon otherwise.
|
| +struct LargeIconResult {
|
| + LargeIconResult();
|
| + ~LargeIconResult();
|
| +
|
| + // The bitmap of the large icon if available.
|
| + FaviconRawBitmapResult bitmap;
|
| +
|
| + // The fallback icon style if a large icon isn't available. This uses the
|
| + // dominant color of a smaller icon as the background if available.
|
| + FallbackIconStyle fallback_icon_style;
|
| +};
|
| +
|
| } // namespace favicon_base
|
|
|
| #endif // COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_
|
|
|