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 typed urls. | 5 // Sync protocol datatype extension for typed urls. |
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; |
| 13 option retain_unknown_fields = true; |
| 14 |
12 package sync_pb; | 15 package sync_pb; |
13 | 16 |
14 // Properties of typed_url sync objects - fields correspond to similarly named | 17 // Properties of typed_url sync objects - fields correspond to similarly named |
15 // fields in history::URLRow. | 18 // fields in history::URLRow. |
16 message TypedUrlSpecifics { | 19 message TypedUrlSpecifics { |
17 // Actual URL that was typed. | 20 // Actual URL that was typed. |
18 optional string url = 1; | 21 optional string url = 1; |
19 // Title of the page corresponding to this URL. | 22 // Title of the page corresponding to this URL. |
20 optional string title = 2; | 23 optional string title = 2; |
21 // The number of times this URL was typed. Deprecated since we no longer sync | 24 // The number of times this URL was typed. Deprecated since we no longer sync |
22 // this information (it's inferred by the history code from the transition | 25 // this information (it's inferred by the history code from the transition |
23 // type for each visit). | 26 // type for each visit). |
24 // optional int32 typed_count = 3; (deprecated) | 27 // optional int32 typed_count = 3; (deprecated) |
25 // True if the URL should be used for auto-complete. | 28 // True if the URL should be used for auto-complete. |
26 optional bool hidden = 4; | 29 optional bool hidden = 4; |
27 // The number of visits (includes page reloads). | 30 // The number of visits (includes page reloads). |
28 // repeated int64 visit = 5; (deprecated) | 31 // repeated int64 visit = 5; (deprecated) |
29 // The number of explicit navigations to this URL (excludes page reloads) - | 32 // The number of explicit navigations to this URL (excludes page reloads) - |
30 // deprecated as we no longer sync this (history code infers this from the | 33 // deprecated as we no longer sync this (history code infers this from the |
31 // |visits| array). | 34 // |visits| array). |
32 // optional int32 visited_count = 6; (deprecated) | 35 // optional int32 visited_count = 6; (deprecated) |
33 // Timestamps for all visits to this URL. | 36 // Timestamps for all visits to this URL. |
34 repeated int64 visits = 7 [packed=true]; | 37 repeated int64 visits = 7 [packed=true]; |
35 // The PageTransition::Type for each of the visits in the |visit| array. Both | 38 // The PageTransition::Type for each of the visits in the |visit| array. Both |
36 // arrays must be the same length. | 39 // arrays must be the same length. |
37 repeated int32 visit_transitions = 8 [packed=true]; | 40 repeated int32 visit_transitions = 8 [packed=true]; |
38 } | 41 } |
OLD | NEW |