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 "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 } | 613 } |
614 | 614 |
615 base::DictionaryValue* GetUpdatesMessageToValue( | 615 base::DictionaryValue* GetUpdatesMessageToValue( |
616 const sync_pb::GetUpdatesMessage& proto) { | 616 const sync_pb::GetUpdatesMessage& proto) { |
617 base::DictionaryValue* value = new base::DictionaryValue(); | 617 base::DictionaryValue* value = new base::DictionaryValue(); |
618 SET(caller_info, GetUpdatesCallerInfoToValue); | 618 SET(caller_info, GetUpdatesCallerInfoToValue); |
619 SET_BOOL(fetch_folders); | 619 SET_BOOL(fetch_folders); |
620 SET_INT32(batch_size); | 620 SET_INT32(batch_size); |
621 SET_REP(from_progress_marker, DataTypeProgressMarkerToValue); | 621 SET_REP(from_progress_marker, DataTypeProgressMarkerToValue); |
622 SET_BOOL(streaming); | 622 SET_BOOL(streaming); |
| 623 SET_BOOL(need_encryption_key); |
623 SET_BOOL(create_mobile_bookmarks_folder); | 624 SET_BOOL(create_mobile_bookmarks_folder); |
624 return value; | 625 return value; |
625 } | 626 } |
626 | 627 |
627 base::DictionaryValue* ClientStatusToValue(const sync_pb::ClientStatus& proto) { | 628 base::DictionaryValue* ClientStatusToValue(const sync_pb::ClientStatus& proto) { |
628 base::DictionaryValue* value = new base::DictionaryValue(); | 629 base::DictionaryValue* value = new base::DictionaryValue(); |
629 SET_BOOL(hierarchy_conflict_detected); | 630 SET_BOOL(hierarchy_conflict_detected); |
630 return value; | 631 return value; |
631 } | 632 } |
632 | 633 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 SET_INT32(num_updates_downloaded); | 771 SET_INT32(num_updates_downloaded); |
771 SET_INT32(num_reflected_updates_downloaded); | 772 SET_INT32(num_reflected_updates_downloaded); |
772 SET(caller_info, GetUpdatesCallerInfoToValue); | 773 SET(caller_info, GetUpdatesCallerInfoToValue); |
773 return value; | 774 return value; |
774 } | 775 } |
775 | 776 |
776 base::DictionaryValue* ClientConfigParamsToValue( | 777 base::DictionaryValue* ClientConfigParamsToValue( |
777 const sync_pb::ClientConfigParams& proto) { | 778 const sync_pb::ClientConfigParams& proto) { |
778 base::DictionaryValue* value = new base::DictionaryValue(); | 779 base::DictionaryValue* value = new base::DictionaryValue(); |
779 SET_INT32_REP(enabled_type_ids); | 780 SET_INT32_REP(enabled_type_ids); |
| 781 SET_BOOL(tabs_datatype_enabled); |
780 return value; | 782 return value; |
781 } | 783 } |
782 | 784 |
783 #undef SET | 785 #undef SET |
784 #undef SET_REP | 786 #undef SET_REP |
785 | 787 |
786 #undef SET_BOOL | 788 #undef SET_BOOL |
787 #undef SET_BYTES | 789 #undef SET_BYTES |
788 #undef SET_INT32 | 790 #undef SET_INT32 |
789 #undef SET_INT64 | 791 #undef SET_INT64 |
790 #undef SET_INT64_REP | 792 #undef SET_INT64_REP |
791 #undef SET_STR | 793 #undef SET_STR |
792 #undef SET_STR_REP | 794 #undef SET_STR_REP |
793 | 795 |
794 #undef SET_FIELD | 796 #undef SET_FIELD |
795 | 797 |
796 } // namespace syncer | 798 } // namespace syncer |
OLD | NEW |