Index: components/enhanced_bookmarks/image_record.cc |
diff --git a/components/enhanced_bookmarks/image_record.cc b/components/enhanced_bookmarks/image_record.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2e380f0b009eab0c2d0b8dc53410c16dceed3419 |
--- /dev/null |
+++ b/components/enhanced_bookmarks/image_record.cc |
@@ -0,0 +1,28 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "components/enhanced_bookmarks/image_record.h" |
+ |
+namespace enhanced_bookmarks { |
+ |
+ImageRecord::ImageRecord(scoped_ptr<gfx::Image> image, |
+ const GURL& url, |
+ SkColor dominant_color) |
+ : image(image.Pass()), |
+ url(url), |
+ dominant_color(dominant_color) { |
+} |
+ |
+ImageRecord::ImageRecord(scoped_ptr<gfx::Image> image, const GURL& url) |
+ : ImageRecord(image.Pass(), url, SK_ColorBLACK) { |
+} |
+ |
+ImageRecord::ImageRecord() |
+ : ImageRecord(scoped_ptr<gfx::Image>(new gfx::Image()), GURL()) { |
+} |
+ |
+ImageRecord::~ImageRecord() { |
+} |
+ |
+} // namespace enhanced_bookmarks |