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

Side by Side Diff: components/sync/core/non_blocking_sync_common.h

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. 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 2014 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 #ifndef COMPONENTS_SYNC_CORE_NON_BLOCKING_SYNC_COMMON_H_
6 #define COMPONENTS_SYNC_CORE_NON_BLOCKING_SYNC_COMMON_H_
7
8 #include <stdint.h>
9
10 #include <string>
11 #include <vector>
12
13 #include "base/time/time.h"
14 #include "components/sync/model/entity_data.h"
15 #include "components/sync/protocol/sync.pb.h"
16
17 namespace syncer {
18
19 static const int64_t kUncommittedVersion = -1;
20
21 struct CommitRequestData {
22 CommitRequestData();
23 CommitRequestData(const CommitRequestData& other);
24 ~CommitRequestData();
25
26 EntityDataPtr entity;
27
28 // Strictly incrementing number for in-progress commits. More information
29 // about its meaning can be found in comments in the files that make use of
30 // this struct.
31 int64_t sequence_number = 0;
32 int64_t base_version = 0;
33 std::string specifics_hash;
34 };
35
36 struct CommitResponseData {
37 CommitResponseData();
38 CommitResponseData(const CommitResponseData& other);
39 ~CommitResponseData();
40
41 std::string id;
42 std::string client_tag_hash;
43 int64_t sequence_number = 0;
44 int64_t response_version = 0;
45 std::string specifics_hash;
46 };
47
48 struct UpdateResponseData {
49 UpdateResponseData();
50 UpdateResponseData(const UpdateResponseData& other);
51 ~UpdateResponseData();
52
53 EntityDataPtr entity;
54
55 int64_t response_version = 0;
56 std::string encryption_key_name;
57 };
58
59 typedef std::vector<CommitRequestData> CommitRequestDataList;
60 typedef std::vector<CommitResponseData> CommitResponseDataList;
61 typedef std::vector<UpdateResponseData> UpdateResponseDataList;
62
63 } // namespace syncer
64
65 #endif // COMPONENTS_SYNC_CORE_NON_BLOCKING_SYNC_COMMON_H_
OLDNEW
« no previous file with comments | « components/sync/core/model_type_processor_proxy.cc ('k') | components/sync/core/non_blocking_sync_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698