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
3 // found in the LICENSE file.
5 #include "components/favicon_base/favicon_types.h"
7 #include "components/favicon_base/fallback_icon_style.h"
9 namespace favicon_base {
11 // ---------------------------------------------------------
14 FaviconImageResult::FaviconImageResult() {}
16 FaviconImageResult::~FaviconImageResult() {}
18 // --------------------------------------------------------
19 // FaviconRawBitmapResult
21 FaviconRawBitmapResult::FaviconRawBitmapResult()
22 : expired(false), icon_type(IconType::kInvalid) {}
24 FaviconRawBitmapResult::FaviconRawBitmapResult(
25 const FaviconRawBitmapResult& other) = default;
27 FaviconRawBitmapResult::~FaviconRawBitmapResult() {}
29 // --------------------------------------------------------
32 LargeIconResult::LargeIconResult(const FaviconRawBitmapResult& bitmap_in)
33 : bitmap(bitmap_in) {}
35 LargeIconResult::LargeIconResult(FallbackIconStyle* fallback_icon_style_in)
36 : fallback_icon_style(fallback_icon_style_in) {}
38 LargeIconResult::~LargeIconResult() {}
40 // --------------------------------------------------------
41 // LargeIconImageResult
43 LargeIconImageResult::LargeIconImageResult(const gfx::Image& image_in,
44 const GURL& icon_url_in)
45 : image(image_in), icon_url(icon_url_in) {}
47 LargeIconImageResult::LargeIconImageResult(
48 FallbackIconStyle* fallback_icon_style_in)
49 : fallback_icon_style(fallback_icon_style_in) {}
51 LargeIconImageResult::~LargeIconImageResult() {}
53 } // namespace favicon_base