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 #include "components/sync/protocol/proto_value_conversions.h" | 5 #include "components/sync/protocol/proto_value_conversions.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // EntitySpecifics | 161 // EntitySpecifics |
162 template <class P> | 162 template <class P> |
163 void Visit(const P& parent_proto, | 163 void Visit(const P& parent_proto, |
164 const char* field_name, | 164 const char* field_name, |
165 const sync_pb::EntitySpecifics& field) { | 165 const sync_pb::EntitySpecifics& field) { |
166 if (include_specifics_) { | 166 if (include_specifics_) { |
167 VisitImpl(parent_proto, field_name, field); | 167 VisitImpl(parent_proto, field_name, field); |
168 } | 168 } |
169 } | 169 } |
170 | 170 |
| 171 // EnhancedBookmarksFlags |
| 172 template <class P> |
| 173 void Visit(const P& parent_proto, |
| 174 const char* field_name, |
| 175 const sync_pb::EnhancedBookmarksFlags& field) { |
| 176 // Obsolete, don't visit |
| 177 } |
| 178 |
| 179 // WalletSyncFlags |
| 180 template <class P> |
| 181 void Visit(const P& parent_proto, |
| 182 const char* field_name, |
| 183 const sync_pb::WalletSyncFlags& field) { |
| 184 // Obsolete, don't visit |
| 185 } |
| 186 |
171 // PasswordSpecificsData | 187 // PasswordSpecificsData |
172 std::unique_ptr<base::DictionaryValue> ToValue( | 188 std::unique_ptr<base::DictionaryValue> ToValue( |
173 const sync_pb::PasswordSpecificsData& proto) const { | 189 const sync_pb::PasswordSpecificsData& proto) const { |
174 auto value = ToValueImpl(proto); | 190 auto value = ToValueImpl(proto); |
175 value->SetString("password_value", "<redacted>"); | 191 value->SetString("password_value", "<redacted>"); |
176 return value; | 192 return value; |
177 } | 193 } |
178 | 194 |
179 // AutofillWalletSpecifics | 195 // AutofillWalletSpecifics |
180 std::unique_ptr<base::DictionaryValue> ToValue( | 196 std::unique_ptr<base::DictionaryValue> ToValue( |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 IMPLEMENT_PROTO_TO_VALUE(WifiCredentialSpecifics) | 344 IMPLEMENT_PROTO_TO_VALUE(WifiCredentialSpecifics) |
329 | 345 |
330 IMPLEMENT_PROTO_TO_VALUE_INCLUDE_SPECIFICS(ClientToServerMessage) | 346 IMPLEMENT_PROTO_TO_VALUE_INCLUDE_SPECIFICS(ClientToServerMessage) |
331 IMPLEMENT_PROTO_TO_VALUE_INCLUDE_SPECIFICS(ClientToServerResponse) | 347 IMPLEMENT_PROTO_TO_VALUE_INCLUDE_SPECIFICS(ClientToServerResponse) |
332 IMPLEMENT_PROTO_TO_VALUE_INCLUDE_SPECIFICS(SyncEntity) | 348 IMPLEMENT_PROTO_TO_VALUE_INCLUDE_SPECIFICS(SyncEntity) |
333 | 349 |
334 #undef IMPLEMENT_PROTO_TO_VALUE | 350 #undef IMPLEMENT_PROTO_TO_VALUE |
335 #undef IMPLEMENT_PROTO_TO_VALUE_INCLUDE_SPECIFICS | 351 #undef IMPLEMENT_PROTO_TO_VALUE_INCLUDE_SPECIFICS |
336 | 352 |
337 } // namespace syncer | 353 } // namespace syncer |
OLD | NEW |