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

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

Issue 2360703002: [Sync] Implements the loopback sync server. (Closed)
Patch Set: Address comment. Created 4 years, 2 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
(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 }
OLDNEW
« no previous file with comments | « components/sync/engine_impl/syncer_proto_util.h ('k') | components/sync/protocol/protocol_sources.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698