Index: components/enhanced_bookmarks/image_record.h |
diff --git a/components/enhanced_bookmarks/image_record.h b/components/enhanced_bookmarks/image_record.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dde32513ce7942f6b3e9b6285f4bc47371487903 |
--- /dev/null |
+++ b/components/enhanced_bookmarks/image_record.h |
@@ -0,0 +1,30 @@ |
+// 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. |
+ |
+#ifndef COMPONENTS_ENHANCED_BOOKMARKS_IMAGE_RECORD_H_ |
+#define COMPONENTS_ENHANCED_BOOKMARKS_IMAGE_RECORD_H_ |
+ |
+#include "third_party/skia/include/core/SkColor.h" |
+#include "ui/gfx/image/image.h" |
+#include "url/gurl.h" |
+ |
+namespace enhanced_bookmarks { |
+ |
+// Defines a record of a bookmark image in the ImageStore. |
+struct ImageRecord { |
+ ImageRecord() : image(), url(), dominant_color(SK_ColorBLACK) {} |
+ ImageRecord(const gfx::Image& image, const GURL& url, SkColor dominant_color) |
+ : image(image), url(url), dominant_color(dominant_color) {} |
+ |
+ // The image data. |
+ gfx::Image image; |
+ // The URL that hosts the image. |
+ GURL url; |
+ // The dominant color of the image. |
+ SkColor dominant_color; |
+}; |
+ |
+} // namespace enhanced_bookmarks |
+ |
+#endif // COMPONENTS_ENHANCED_BOOKMARKS_IMAGE_RECORD_H_ |