| 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 persisting the loopback server state to disk. |
| 6 |
| 7 syntax = "proto2"; |
| 8 |
| 9 option optimize_for = LITE_RUNTIME; |
| 10 |
| 11 package sync_pb; |
| 12 |
| 13 import "sync.proto"; |
| 14 |
| 15 // Serialization of the LoopbackServerEntity and its ancestors. |
| 16 message LoopbackServerEntity { |
| 17 // Entity type mapping to one of the subclasses of LoopbackServerEntity. |
| 18 enum Type { |
| 19 UNKNOWN = 0; |
| 20 BOOKMARK = 1; |
| 21 PERMANENT = 2; |
| 22 TOMBSTONE = 3; |
| 23 UNIQUE = 4; |
| 24 } |
| 25 |
| 26 optional Type type = 1; |
| 27 optional SyncEntity entity = 2; |
| 28 optional int64 model_type = 3; |
| 29 } |
| 30 |
| 31 // Contains the loopback server state. |
| 32 message LoopbackServerProto { |
| 33 // The protocol buffer format version. |
| 34 optional int64 version = 1; |
| 35 |
| 36 optional int64 store_birthday = 2; |
| 37 |
| 38 repeated LoopbackServerEntity entities = 3; |
| 39 |
| 40 // All Keystore keys known to the server. |
| 41 repeated string keystore_keys = 4; |
| 42 |
| 43 // The last entity ID that was assigned to an entity. |
| 44 optional int64 last_version_assigned = 5; |
| 45 } |
| OLD | NEW |