| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SYNC_INTERNAL_API_PUBLIC_NON_BLOCKING_SYNC_COMMON_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_NON_BLOCKING_SYNC_COMMON_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_NON_BLOCKING_SYNC_COMMON_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_NON_BLOCKING_SYNC_COMMON_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 CommitRequestData(const CommitRequestData& other); | 24 CommitRequestData(const CommitRequestData& other); |
| 25 ~CommitRequestData(); | 25 ~CommitRequestData(); |
| 26 | 26 |
| 27 EntityDataPtr entity; | 27 EntityDataPtr entity; |
| 28 | 28 |
| 29 // Strictly incrementing number for in-progress commits. More information | 29 // Strictly incrementing number for in-progress commits. More information |
| 30 // about its meaning can be found in comments in the files that make use of | 30 // about its meaning can be found in comments in the files that make use of |
| 31 // this struct. | 31 // this struct. |
| 32 int64_t sequence_number = 0; | 32 int64_t sequence_number = 0; |
| 33 int64_t base_version = 0; | 33 int64_t base_version = 0; |
| 34 std::string specifics_hash; |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 struct SYNC_EXPORT CommitResponseData { | 37 struct SYNC_EXPORT CommitResponseData { |
| 37 CommitResponseData(); | 38 CommitResponseData(); |
| 39 CommitResponseData(const CommitResponseData& other); |
| 38 ~CommitResponseData(); | 40 ~CommitResponseData(); |
| 39 | 41 |
| 40 std::string id; | 42 std::string id; |
| 41 std::string client_tag_hash; | 43 std::string client_tag_hash; |
| 42 int64_t sequence_number = 0; | 44 int64_t sequence_number = 0; |
| 43 int64_t response_version = 0; | 45 int64_t response_version = 0; |
| 46 std::string specifics_hash; |
| 44 }; | 47 }; |
| 45 | 48 |
| 46 struct SYNC_EXPORT UpdateResponseData { | 49 struct SYNC_EXPORT UpdateResponseData { |
| 47 UpdateResponseData(); | 50 UpdateResponseData(); |
| 48 UpdateResponseData(const UpdateResponseData& other); | 51 UpdateResponseData(const UpdateResponseData& other); |
| 49 ~UpdateResponseData(); | 52 ~UpdateResponseData(); |
| 50 | 53 |
| 51 EntityDataPtr entity; | 54 EntityDataPtr entity; |
| 52 | 55 |
| 53 int64_t response_version = 0; | 56 int64_t response_version = 0; |
| 54 std::string encryption_key_name; | 57 std::string encryption_key_name; |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 typedef std::vector<CommitRequestData> CommitRequestDataList; | 60 typedef std::vector<CommitRequestData> CommitRequestDataList; |
| 58 typedef std::vector<CommitResponseData> CommitResponseDataList; | 61 typedef std::vector<CommitResponseData> CommitResponseDataList; |
| 59 typedef std::vector<UpdateResponseData> UpdateResponseDataList; | 62 typedef std::vector<UpdateResponseData> UpdateResponseDataList; |
| 60 | 63 |
| 61 } // namespace syncer_v2 | 64 } // namespace syncer_v2 |
| 62 | 65 |
| 63 #endif // SYNC_INTERNAL_API_PUBLIC_NON_BLOCKING_SYNC_COMMON_H_ | 66 #endif // SYNC_INTERNAL_API_PUBLIC_NON_BLOCKING_SYNC_COMMON_H_ |
| OLD | NEW |