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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 SET_STR(state); | 163 SET_STR(state); |
164 SET_ENUM(page_transition, GetPageTransitionString); | 164 SET_ENUM(page_transition, GetPageTransitionString); |
165 SET_ENUM(redirect_type, GetPageTransitionRedirectTypeString); | 165 SET_ENUM(redirect_type, GetPageTransitionRedirectTypeString); |
166 SET_INT32(unique_id); | 166 SET_INT32(unique_id); |
167 SET_INT64(timestamp); | 167 SET_INT64(timestamp); |
168 SET_BOOL(navigation_forward_back); | 168 SET_BOOL(navigation_forward_back); |
169 SET_BOOL(navigation_from_address_bar), | 169 SET_BOOL(navigation_from_address_bar), |
170 SET_BOOL(navigation_home_page); | 170 SET_BOOL(navigation_home_page); |
171 SET_BOOL(navigation_chain_start); | 171 SET_BOOL(navigation_chain_start); |
172 SET_BOOL(navigation_chain_end); | 172 SET_BOOL(navigation_chain_end); |
| 173 SET_INT64(global_id); |
173 return value; | 174 return value; |
174 } | 175 } |
175 | 176 |
176 DictionaryValue* PasswordSpecificsDataToValue( | 177 DictionaryValue* PasswordSpecificsDataToValue( |
177 const sync_pb::PasswordSpecificsData& proto) { | 178 const sync_pb::PasswordSpecificsData& proto) { |
178 DictionaryValue* value = new DictionaryValue(); | 179 DictionaryValue* value = new DictionaryValue(); |
179 SET_INT32(scheme); | 180 SET_INT32(scheme); |
180 SET_STR(signon_realm); | 181 SET_STR(signon_realm); |
181 SET_STR(origin); | 182 SET_STR(origin); |
182 SET_STR(action); | 183 SET_STR(action); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 #undef SET_BYTES | 599 #undef SET_BYTES |
599 #undef SET_INT32 | 600 #undef SET_INT32 |
600 #undef SET_INT64 | 601 #undef SET_INT64 |
601 #undef SET_INT64_REP | 602 #undef SET_INT64_REP |
602 #undef SET_STR | 603 #undef SET_STR |
603 #undef SET_STR_REP | 604 #undef SET_STR_REP |
604 | 605 |
605 #undef SET_FIELD | 606 #undef SET_FIELD |
606 | 607 |
607 } // namespace syncer | 608 } // namespace syncer |
OLD | NEW |