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

Side by Side Diff: sync/protocol/proto_value_conversions.cc

Issue 187303006: Update sync API to support attachments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@attachmentapi
Patch Set: Rename GetAttachments to GetLocalAttachmentsForUpload. Created 6 years, 9 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
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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 } 1046 }
1047 1047
1048 base::DictionaryValue* ClientConfigParamsToValue( 1048 base::DictionaryValue* ClientConfigParamsToValue(
1049 const sync_pb::ClientConfigParams& proto) { 1049 const sync_pb::ClientConfigParams& proto) {
1050 base::DictionaryValue* value = new base::DictionaryValue(); 1050 base::DictionaryValue* value = new base::DictionaryValue();
1051 SET_INT32_REP(enabled_type_ids); 1051 SET_INT32_REP(enabled_type_ids);
1052 SET_BOOL(tabs_datatype_enabled); 1052 SET_BOOL(tabs_datatype_enabled);
1053 return value; 1053 return value;
1054 } 1054 }
1055 1055
1056 base::DictionaryValue* AttachmentIdProtoToValue(
1057 const sync_pb::AttachmentIdProto& proto) {
1058 base::DictionaryValue* value = new base::DictionaryValue();
1059 SET_STR(unique_id);
1060 return value;
1061 }
1062
1056 #undef SET 1063 #undef SET
1057 #undef SET_REP 1064 #undef SET_REP
1058 1065
1059 #undef SET_BOOL 1066 #undef SET_BOOL
1060 #undef SET_BYTES 1067 #undef SET_BYTES
1061 #undef SET_INT32 1068 #undef SET_INT32
1062 #undef SET_INT64 1069 #undef SET_INT64
1063 #undef SET_INT64_REP 1070 #undef SET_INT64_REP
1064 #undef SET_STR 1071 #undef SET_STR
1065 #undef SET_STR_REP 1072 #undef SET_STR_REP
1066 1073
1067 #undef SET_FIELD 1074 #undef SET_FIELD
1068 1075
1069 } // namespace syncer 1076 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/proto_value_conversions.h ('k') | sync/protocol/proto_value_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698