Chromium Code Reviews| 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 favicons. | |
| 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 optional bytes favicon = 1; | |
| 16 // The favicon image's type. This should be kept in sync with IconType in | |
| 17 // history_types.cc | |
|
pkotwicz
2013/02/07 02:15:47
Nit: history_types.h
| |
| 18 enum IconType { | |
| 19 // A normal web favicon (max resolution 32x32). | |
| 20 FAVICON = 0; | |
| 21 // A high resolution touch favicon (max resolution 128x128) | |
| 22 TOUCH_ICON = 1; | |
| 23 // A precomposed touch favicon (max resolution xxx). | |
|
pkotwicz
2013/02/07 02:15:47
It makes sense to cap the size of both TOUCH_ICON
| |
| 24 TOUCH_PRECOMPOSED_ICON = 2; | |
| 25 } | |
| 26 optional IconType icon_type = 2; | |
| 27 // The width in pixels of this favicon (which is assumed to be the same as | |
| 28 // the height). | |
| 29 optional int64 width = 3; | |
|
pkotwicz
2013/02/07 02:15:47
We should sync both the width and height.
I think
| |
| 30 } | |
| 31 | |
| 32 // Properties of Favicon objects. | |
| 33 message FaviconSpecifics { | |
| 34 // The url of the favicon image. | |
| 35 optional string favicon_source = 1; | |
|
pkotwicz
2013/02/07 02:15:47
Nit: Name this parameter |favicon_url| / |icon_url
| |
| 36 // The favicons associated with this source. Only one favicon per IconType | |
| 37 // is supported. | |
| 38 repeated FaviconData favicons = 2; | |
| 39 // The last time a page using this favicon was visited (in milliseconds | |
| 40 // since linux epoch). Once a favicon has not been visited in long enough | |
| 41 // time, it is garbage collected. | |
| 42 optional int64 last_visit_time_ms = 3; | |
| 43 // Whether this favicon is currently bookmarked or not. Bookmarked favicons | |
| 44 // are not garbage collected. | |
| 45 optional bool is_bookmarked = 4; | |
| 46 } | |
| OLD | NEW |