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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 SET_STR(originating_url); | 347 SET_STR(originating_url); |
348 SET_INT64(date_created); | 348 SET_INT64(date_created); |
349 SET_STR(input_encodings); | 349 SET_STR(input_encodings); |
350 SET_BOOL(show_in_default_list); | 350 SET_BOOL(show_in_default_list); |
351 SET_STR(suggestions_url); | 351 SET_STR(suggestions_url); |
352 SET_INT32(prepopulate_id); | 352 SET_INT32(prepopulate_id); |
353 SET_BOOL(autogenerate_keyword); | 353 SET_BOOL(autogenerate_keyword); |
354 SET_STR(instant_url); | 354 SET_STR(instant_url); |
355 SET_INT64(last_modified); | 355 SET_INT64(last_modified); |
356 SET_STR(sync_guid); | 356 SET_STR(sync_guid); |
| 357 SET_STR_REP(alternate_urls); |
357 return value; | 358 return value; |
358 } | 359 } |
359 | 360 |
360 DictionaryValue* SessionSpecificsToValue( | 361 DictionaryValue* SessionSpecificsToValue( |
361 const sync_pb::SessionSpecifics& proto) { | 362 const sync_pb::SessionSpecifics& proto) { |
362 DictionaryValue* value = new DictionaryValue(); | 363 DictionaryValue* value = new DictionaryValue(); |
363 SET_STR(session_tag); | 364 SET_STR(session_tag); |
364 SET(header, SessionHeaderToValue); | 365 SET(header, SessionHeaderToValue); |
365 SET(tab, SessionTabToValue); | 366 SET(tab, SessionTabToValue); |
366 SET_INT32(tab_node_id); | 367 SET_INT32(tab_node_id); |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 #undef SET_BYTES | 595 #undef SET_BYTES |
595 #undef SET_INT32 | 596 #undef SET_INT32 |
596 #undef SET_INT64 | 597 #undef SET_INT64 |
597 #undef SET_INT64_REP | 598 #undef SET_INT64_REP |
598 #undef SET_STR | 599 #undef SET_STR |
599 #undef SET_STR_REP | 600 #undef SET_STR_REP |
600 | 601 |
601 #undef SET_FIELD | 602 #undef SET_FIELD |
602 | 603 |
603 } // namespace syncer | 604 } // namespace syncer |
OLD | NEW |