OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 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. | |
4 // | |
5 // Sync protocol datatype extension for the favicon image specifics. | |
6 | |
7 syntax = "proto2"; | |
8 | |
9 option optimize_for = LITE_RUNTIME; | |
10 option retain_unknown_fields = true; | |
11 | |
12 package sync_pb; | |
13 | |
14 message FaviconData { | |
15 // The image data for the favicon (PNG encoded). | |
16 optional bytes favicon = 1; | |
17 // The favicon dimensions. | |
18 optional int32 width = 2; | |
19 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
| |
20 } | |
21 | |
22 // Image data for favicons. Multiple resolutions are supported. | |
23 message FaviconImageSpecifics { | |
24 // The url of the favicon image. | |
25 optional string favicon_url = 1; | |
26 // The favicons associated with this source, one per scale type. | |
27 // Favicons images should be stored into the field that best corresponds to | |
28 // their scale. | |
29 // A normal low-resolution web favicon (max resolution 16x16). | |
30 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
| |
31 // A slightly higher-resolution web favicon (max resolution 32x32). | |
32 optional FaviconData favicon_web_32 = 3; | |
33 // A high-resolution touch favicon (not precomposed, max resolution 64x64). | |
34 optional FaviconData favicon_touch_64 = 4; | |
35 // A high-resolution touch favicon (precomposed, max resolution 64x64). | |
36 optional FaviconData favicon_touch_precomposed_64 = 5; | |
37 } | |
OLD | NEW |