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

Side by Side Diff: components/sync/protocol/unique_position.proto

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « components/sync/protocol/typed_url_specifics.proto ('k') | components/sync/protocol/wifi_credential_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698