OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Sync protocol datatype extension for bookmarks. | 5 // Sync protocol datatype extension for bookmarks. |
6 | 6 |
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
8 // any fields in this file. | 8 // any fields in this file. |
9 | 9 |
10 syntax = "proto2"; | 10 syntax = "proto2"; |
11 | 11 |
12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
13 option retain_unknown_fields = true; | |
14 | 13 |
15 package sync_pb; | 14 package sync_pb; |
16 | 15 |
17 // Corresponds to a single meta info key/value pair for a bookmark node. | 16 // Corresponds to a single meta info key/value pair for a bookmark node. |
18 message MetaInfo { | 17 message MetaInfo { |
19 optional string key = 1; | 18 optional string key = 1; |
20 optional string value = 2; | 19 optional string value = 2; |
21 } | 20 } |
22 | 21 |
23 // Properties of bookmark sync objects. | 22 // Properties of bookmark sync objects. |
24 message BookmarkSpecifics { | 23 message BookmarkSpecifics { |
25 optional string url = 1; | 24 optional string url = 1; |
26 optional bytes favicon = 2; | 25 optional bytes favicon = 2; |
27 optional string title = 3; | 26 optional string title = 3; |
28 // Corresponds to BookmarkNode::date_added() and is the internal value from | 27 // Corresponds to BookmarkNode::date_added() and is the internal value from |
29 // base::Time. | 28 // base::Time. |
30 optional int64 creation_time_us = 4; | 29 optional int64 creation_time_us = 4; |
31 optional string icon_url = 5; | 30 optional string icon_url = 5; |
32 repeated MetaInfo meta_info = 6; | 31 repeated MetaInfo meta_info = 6; |
33 } | 32 } |
OLD | NEW |