| 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"; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 optional bytes compressed_value = 2; | 64 optional bytes compressed_value = 2; |
| 65 optional uint64 uncompressed_length = 3; | 65 optional uint64 uncompressed_length = 3; |
| 66 | 66 |
| 67 // This encoding uses compression scheme designed especially for unique | 67 // This encoding uses compression scheme designed especially for unique |
| 68 // positions. It has the property that X < Y precisely when Compressed(X) < | 68 // positions. It has the property that X < Y precisely when Compressed(X) < |
| 69 // Compressed(Y), which is very useful when the most common operation is to | 69 // Compressed(Y), which is very useful when the most common operation is to |
| 70 // compare these positions against each other. Their values may remain | 70 // compare these positions against each other. Their values may remain |
| 71 // compressed in memory. | 71 // compressed in memory. |
| 72 // | 72 // |
| 73 // The compression scheme is implemented and documented in | 73 // The compression scheme is implemented and documented in |
| 74 // sync/internal_api/base/unique_position.cc. | 74 // sync/core_impl/base/unique_position.cc. |
| 75 // | 75 // |
| 76 // As of M30, this is the preferred encoding. Newer clients may continue to | 76 // As of M30, this is the preferred encoding. Newer clients may continue to |
| 77 // populate the 'value' and 'compressed_value' fields to ensure backwards | 77 // populate the 'value' and 'compressed_value' fields to ensure backwards |
| 78 // compatibility, but they will always try to read from this field first. | 78 // compatibility, but they will always try to read from this field first. |
| 79 optional bytes custom_compressed_v1 = 4; | 79 optional bytes custom_compressed_v1 = 4; |
| 80 } | 80 } |
| OLD | NEW |