| 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 11 matching lines...) Expand all Loading... |
| 22 #include "sync/protocol/nigori_specifics.pb.h" | 22 #include "sync/protocol/nigori_specifics.pb.h" |
| 23 #include "sync/protocol/password_specifics.pb.h" | 23 #include "sync/protocol/password_specifics.pb.h" |
| 24 #include "sync/protocol/preference_specifics.pb.h" | 24 #include "sync/protocol/preference_specifics.pb.h" |
| 25 #include "sync/protocol/proto_enum_conversions.h" | 25 #include "sync/protocol/proto_enum_conversions.h" |
| 26 #include "sync/protocol/search_engine_specifics.pb.h" | 26 #include "sync/protocol/search_engine_specifics.pb.h" |
| 27 #include "sync/protocol/session_specifics.pb.h" | 27 #include "sync/protocol/session_specifics.pb.h" |
| 28 #include "sync/protocol/sync.pb.h" | 28 #include "sync/protocol/sync.pb.h" |
| 29 #include "sync/protocol/theme_specifics.pb.h" | 29 #include "sync/protocol/theme_specifics.pb.h" |
| 30 #include "sync/protocol/typed_url_specifics.pb.h" | 30 #include "sync/protocol/typed_url_specifics.pb.h" |
| 31 | 31 |
| 32 namespace csync { | 32 namespace syncer { |
| 33 | 33 |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 // Basic Type -> Value functions. | 36 // Basic Type -> Value functions. |
| 37 | 37 |
| 38 StringValue* MakeInt64Value(int64 x) { | 38 StringValue* MakeInt64Value(int64 x) { |
| 39 return Value::CreateStringValue(base::Int64ToString(x)); | 39 return Value::CreateStringValue(base::Int64ToString(x)); |
| 40 } | 40 } |
| 41 | 41 |
| 42 // TODO(akalin): Perhaps make JSONWriter support BinaryValue and use | 42 // TODO(akalin): Perhaps make JSONWriter support BinaryValue and use |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 #undef SET_BOOL | 586 #undef SET_BOOL |
| 587 #undef SET_BYTES | 587 #undef SET_BYTES |
| 588 #undef SET_INT32 | 588 #undef SET_INT32 |
| 589 #undef SET_INT64 | 589 #undef SET_INT64 |
| 590 #undef SET_INT64_REP | 590 #undef SET_INT64_REP |
| 591 #undef SET_STR | 591 #undef SET_STR |
| 592 #undef SET_STR_REP | 592 #undef SET_STR_REP |
| 593 | 593 |
| 594 #undef SET_FIELD | 594 #undef SET_FIELD |
| 595 | 595 |
| 596 } // namespace csync | 596 } // namespace syncer |
| OLD | NEW |