Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(986)

Unified Diff: sync/protocol/favicon_image_specifics.proto

Issue 12089103: [Sync] Add favicon datatype proto support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split into two types Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/protocol/favicon_image_specifics.proto
diff --git a/sync/protocol/favicon_image_specifics.proto b/sync/protocol/favicon_image_specifics.proto
new file mode 100644
index 0000000000000000000000000000000000000000..f63c3cec634ac4ba6d7c794aedd6bb5b732b82b5
--- /dev/null
+++ b/sync/protocol/favicon_image_specifics.proto
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 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.
+//
+// Sync protocol datatype extension for the favicon image specifics.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+option retain_unknown_fields = true;
+
+package sync_pb;
+
+message FaviconData {
+ // The image data for the favicon (PNG encoded).
+ optional bytes favicon = 1;
+ // The favicon dimensions.
+ optional int32 width = 2;
+ optional int64 height = 3;
albertb 2013/02/14 19:07:57 1) Do you really need to keep track of both dimens
Nicolas Zea 2013/02/14 19:45:51 1) From speaking with Peter I don't think so. Can
pkotwicz 2013/02/14 21:15:05 1) Favicons can have any dimensions. In practice t
+}
+
+// Image data for favicons. Multiple resolutions are supported.
+message FaviconImageSpecifics {
+ // The url of the favicon image.
+ optional string favicon_url = 1;
+ // The favicons associated with this source, one per scale type.
+ // Favicons images should be stored into the field that best corresponds to
+ // their scale.
+ // A normal low-resolution web favicon (max resolution 16x16).
+ optional FaviconData favicon_web = 2;
albertb 2013/02/14 19:07:57 Since the size is already encoded in FaviconData,
Nicolas Zea 2013/02/14 19:45:51 Because we want to be able to store multiple favic
albertb 2013/02/14 20:31:49 Just a general observation, but by storing the sam
+ // A slightly higher-resolution web favicon (max resolution 32x32).
+ optional FaviconData favicon_web_32 = 3;
+ // A high-resolution touch favicon (not precomposed, max resolution 64x64).
+ optional FaviconData favicon_touch_64 = 4;
+ // A high-resolution touch favicon (precomposed, max resolution 64x64).
+ optional FaviconData favicon_touch_precomposed_64 = 5;
+}
« no previous file with comments | « no previous file | sync/protocol/favicon_tracking_specifics.proto » ('j') | sync/protocol/favicon_tracking_specifics.proto » ('J')

Powered by Google App Engine
This is Rietveld 408576698