| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // requests made on the model thread. The interpretation of this value may | 30 // requests made on the model thread. The interpretation of this value may |
| 31 // be data-type specific. Many data types ignore it. | 31 // be data-type specific. Many data types ignore it. |
| 32 sync_pb::DataTypeContext type_context; | 32 sync_pb::DataTypeContext type_context; |
| 33 | 33 |
| 34 // This value is set if this type's data should be encrypted on the server. | 34 // This value is set if this type's data should be encrypted on the server. |
| 35 // If this key changes, the client will need to re-commit all of its local | 35 // If this key changes, the client will need to re-commit all of its local |
| 36 // data to the server using the new encryption key. | 36 // data to the server using the new encryption key. |
| 37 std::string encryption_key_name; | 37 std::string encryption_key_name; |
| 38 | 38 |
| 39 // This flag is set to true when the first download cycle is complete. The | 39 // This flag is set to true when the first download cycle is complete. The |
| 40 // ModelTypeSyncProxy should not attempt to commit any items until this | 40 // ModelTypeProcessor should not attempt to commit any items until this |
| 41 // flag is set. | 41 // flag is set. |
| 42 bool initial_sync_done; | 42 bool initial_sync_done; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 struct SYNC_EXPORT_PRIVATE CommitRequestData { | 45 struct SYNC_EXPORT_PRIVATE CommitRequestData { |
| 46 CommitRequestData(); | 46 CommitRequestData(); |
| 47 ~CommitRequestData(); | 47 ~CommitRequestData(); |
| 48 | 48 |
| 49 std::string id; | 49 std::string id; |
| 50 std::string client_tag_hash; | 50 std::string client_tag_hash; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 std::string encryption_key_name; | 87 std::string encryption_key_name; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 typedef std::vector<CommitRequestData> CommitRequestDataList; | 90 typedef std::vector<CommitRequestData> CommitRequestDataList; |
| 91 typedef std::vector<CommitResponseData> CommitResponseDataList; | 91 typedef std::vector<CommitResponseData> CommitResponseDataList; |
| 92 typedef std::vector<UpdateResponseData> UpdateResponseDataList; | 92 typedef std::vector<UpdateResponseData> UpdateResponseDataList; |
| 93 | 93 |
| 94 } // namespace syncer | 94 } // namespace syncer |
| 95 | 95 |
| 96 #endif // SYNC_INTERNAL_API_PUBLIC_NON_BLOCKING_SYNC_COMMON_H_ | 96 #endif // SYNC_INTERNAL_API_PUBLIC_NON_BLOCKING_SYNC_COMMON_H_ |
| OLD | NEW |