1 // Copyright 2015 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/enhanced_bookmarks/image_record.h"
7 namespace enhanced_bookmarks
{
9 ImageRecord::ImageRecord(scoped_ptr
<gfx::Image
> image
,
11 SkColor dominant_color
)
12 : image(image
.Pass()),
14 dominant_color(dominant_color
) {
17 ImageRecord::ImageRecord(scoped_ptr
<gfx::Image
> image
, const GURL
& url
)
18 : ImageRecord(image
.Pass(), url
, SK_ColorBLACK
) {
21 ImageRecord::ImageRecord()
22 : ImageRecord(scoped_ptr
<gfx::Image
>(new gfx::Image()), GURL()) {
25 ImageRecord::~ImageRecord() {
28 } // namespace enhanced_bookmarks