Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 // | |
| 5 // Sync protocol for communication between sync client and server. | |
|
pavely
2016/10/06 23:48:46
I don't think this comment applies here. I think t
pastarmovj
2016/10/13 14:13:40
Done.
Also cleaned up some commented out fields.
| |
| 6 | |
| 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | |
| 8 // any fields in this file. | |
| 9 | |
| 10 syntax = "proto2"; | |
| 11 | |
| 12 option optimize_for = LITE_RUNTIME; | |
| 13 | |
| 14 package sync_pb; | |
| 15 | |
| 16 import "sync.proto"; | |
| 17 | |
| 18 // Serialization of the LoopbackServerEntity and its ancestors. | |
| 19 message LoopbackServerEntity { | |
| 20 // Entity type mapping to one of the subclasses of LoopbackServerEntity. | |
| 21 enum Type { | |
| 22 BOOKMARK = 1; | |
| 23 PERMANENT = 2; | |
| 24 TOMBSTONE = 3; | |
| 25 UNIQUE = 4; | |
| 26 } | |
| 27 | |
| 28 optional Type type = 1; | |
| 29 optional SyncEntity entity = 2; | |
| 30 // optional string id = 2; | |
| 31 optional int64 model_type = 3; | |
| 32 // optional int64 version = 4; | |
| 33 // optional string name = 5; | |
| 34 // optional EntitySpecifics specifics = 6; | |
| 35 | |
| 36 // Type specific entries: | |
| 37 // optional string originator_cache_guid = 7; | |
| 38 // optional string originator_client_item_id = 8; | |
| 39 // optional UniquePosition unique_position = 9; | |
| 40 // optional bool is_folder = 10; | |
| 41 // optional string parent_id = 11; | |
| 42 // optional int64 creation_time = 12; | |
| 43 // optional int64 last_modified_time = 13; | |
| 44 // optional string server_defined_unique_tag = 14; | |
| 45 // optional string client_defined_unique_tag = 15; | |
| 46 } | |
| 47 | |
| 48 // Contains the loopback server state. | |
| 49 message LoopbackServerProto { | |
| 50 // The protocol buffer format version. | |
| 51 optional int64 version = 1; | |
| 52 | |
| 53 optional int64 store_birthday = 2; | |
| 54 | |
| 55 repeated LoopbackServerEntity entities = 3; | |
| 56 | |
| 57 // All Keystore keys known to the server. | |
| 58 repeated string keystore_keys = 4; | |
| 59 | |
| 60 // The last entity ID that was assigned to an entity. | |
| 61 optional int64 last_version_assigned = 5; | |
| 62 } | |
| OLD | NEW |