| 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 // Protobuf representation of the UniquePosition class. | 5 // Protobuf representation of the UniquePosition class. |
| 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 // A UniquePosition is a string of bytes. | 16 // A UniquePosition is a string of bytes. |
| 18 // | 17 // |
| 19 // Unique positions are unique per-item, since they are guaranteed to end with a | 18 // Unique positions are unique per-item, since they are guaranteed to end with a |
| 20 // fixed-length suffix that is unique per-item. The position string may not end | 19 // fixed-length suffix that is unique per-item. The position string may not end |
| 21 // with a '\0' byte. | 20 // with a '\0' byte. |
| 22 // | 21 // |
| 23 // Prior to the suffix is a series of arbitrary bytes of arbitrary length. | 22 // Prior to the suffix is a series of arbitrary bytes of arbitrary length. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // compressed in memory. | 70 // compressed in memory. |
| 72 // | 71 // |
| 73 // The compression scheme is implemented and documented in | 72 // The compression scheme is implemented and documented in |
| 74 // sync/core_impl/base/unique_position.cc. | 73 // sync/core_impl/base/unique_position.cc. |
| 75 // | 74 // |
| 76 // As of M30, this is the preferred encoding. Newer clients may continue to | 75 // As of M30, this is the preferred encoding. Newer clients may continue to |
| 77 // populate the 'value' and 'compressed_value' fields to ensure backwards | 76 // populate the 'value' and 'compressed_value' fields to ensure backwards |
| 78 // compatibility, but they will always try to read from this field first. | 77 // compatibility, but they will always try to read from this field first. |
| 79 optional bytes custom_compressed_v1 = 4; | 78 optional bytes custom_compressed_v1 = 4; |
| 80 } | 79 } |
| OLD | NEW |