OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 // Keep this file in sync with the .proto files in this directory. | 5 // Keep this file in sync with the .proto files in this directory. |
6 | 6 |
7 #include "sync/protocol/proto_value_conversions.h" | 7 #include "sync/protocol/proto_value_conversions.h" |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 } | 890 } |
891 | 891 |
892 base::DictionaryValue* GetUpdateTriggersToValue( | 892 base::DictionaryValue* GetUpdateTriggersToValue( |
893 const sync_pb::GetUpdateTriggers& proto) { | 893 const sync_pb::GetUpdateTriggers& proto) { |
894 base::DictionaryValue* value = new base::DictionaryValue(); | 894 base::DictionaryValue* value = new base::DictionaryValue(); |
895 SET_STR_REP(notification_hint); | 895 SET_STR_REP(notification_hint); |
896 SET_BOOL(client_dropped_hints); | 896 SET_BOOL(client_dropped_hints); |
897 SET_BOOL(invalidations_out_of_sync); | 897 SET_BOOL(invalidations_out_of_sync); |
898 SET_INT64(local_modification_nudges); | 898 SET_INT64(local_modification_nudges); |
899 SET_INT64(datatype_refresh_nudges); | 899 SET_INT64(datatype_refresh_nudges); |
| 900 SET_BOOL(initial_sync_in_progress); |
900 return value; | 901 return value; |
901 } | 902 } |
902 | 903 |
903 base::DictionaryValue* DataTypeProgressMarkerToValue( | 904 base::DictionaryValue* DataTypeProgressMarkerToValue( |
904 const sync_pb::DataTypeProgressMarker& proto) { | 905 const sync_pb::DataTypeProgressMarker& proto) { |
905 base::DictionaryValue* value = new base::DictionaryValue(); | 906 base::DictionaryValue* value = new base::DictionaryValue(); |
906 SET_INT32(data_type_id); | 907 SET_INT32(data_type_id); |
907 SET_BYTES(token); | 908 SET_BYTES(token); |
908 SET_INT64(timestamp_token_for_migration); | 909 SET_INT64(timestamp_token_for_migration); |
909 SET_STR(notification_hint); | 910 SET_STR(notification_hint); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 #undef SET_BYTES | 1123 #undef SET_BYTES |
1123 #undef SET_INT32 | 1124 #undef SET_INT32 |
1124 #undef SET_INT64 | 1125 #undef SET_INT64 |
1125 #undef SET_INT64_REP | 1126 #undef SET_INT64_REP |
1126 #undef SET_STR | 1127 #undef SET_STR |
1127 #undef SET_STR_REP | 1128 #undef SET_STR_REP |
1128 | 1129 |
1129 #undef SET_FIELD | 1130 #undef SET_FIELD |
1130 | 1131 |
1131 } // namespace syncer | 1132 } // namespace syncer |
OLD | NEW |