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

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

Issue 2106743002: WIP: Local sync only... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix after rebase. Created 4 years, 3 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 communication between sync client and server.
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 }
OLDNEW
« no previous file with comments | « components/sync/engine_impl/sync_scheduler_impl.cc ('k') | components/sync/protocol/protocol_sources.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698