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

Side by Side Diff: sync/protocol/favicon_specifics.proto

Issue 12089103: [Sync] Add favicon datatype proto support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « no previous file | sync/protocol/nigori_specifics.proto » ('j') | sync/protocol/proto_value_conversions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698