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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 SET_BOOL(navigation_chain_start); | 198 SET_BOOL(navigation_chain_start); |
199 SET_BOOL(navigation_chain_end); | 199 SET_BOOL(navigation_chain_end); |
200 SET_INT64(global_id); | 200 SET_INT64(global_id); |
201 SET_STR(search_terms); | 201 SET_STR(search_terms); |
202 SET_STR(favicon_url); | 202 SET_STR(favicon_url); |
203 SET_ENUM(blocked_state, GetBlockedStateString); | 203 SET_ENUM(blocked_state, GetBlockedStateString); |
204 SET_STR_REP(content_pack_categories); | 204 SET_STR_REP(content_pack_categories); |
205 SET_INT32(http_status_code); | 205 SET_INT32(http_status_code); |
206 SET_INT32(referrer_policy); | 206 SET_INT32(referrer_policy); |
207 SET_BOOL(is_restored); | 207 SET_BOOL(is_restored); |
| 208 SET_REP(navigation_redirect, NavigationRedirectToValue); |
| 209 SET_STR(last_navigation_redirect_url); |
208 return value; | 210 return value; |
209 } | 211 } |
210 | 212 |
| 213 base::DictionaryValue* NavigationRedirectToValue( |
| 214 const sync_pb::NavigationRedirect& proto) { |
| 215 base::DictionaryValue* value = new base::DictionaryValue(); |
| 216 SET_STR(url); |
| 217 return value; |
| 218 } |
| 219 |
211 base::DictionaryValue* PasswordSpecificsDataToValue( | 220 base::DictionaryValue* PasswordSpecificsDataToValue( |
212 const sync_pb::PasswordSpecificsData& proto) { | 221 const sync_pb::PasswordSpecificsData& proto) { |
213 base::DictionaryValue* value = new base::DictionaryValue(); | 222 base::DictionaryValue* value = new base::DictionaryValue(); |
214 SET_INT32(scheme); | 223 SET_INT32(scheme); |
215 SET_STR(signon_realm); | 224 SET_STR(signon_realm); |
216 SET_STR(origin); | 225 SET_STR(origin); |
217 SET_STR(action); | 226 SET_STR(action); |
218 SET_STR(username_element); | 227 SET_STR(username_element); |
219 SET_STR(username_value); | 228 SET_STR(username_value); |
220 SET_STR(password_element); | 229 SET_STR(password_element); |
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 #undef SET_BYTES | 1087 #undef SET_BYTES |
1079 #undef SET_INT32 | 1088 #undef SET_INT32 |
1080 #undef SET_INT64 | 1089 #undef SET_INT64 |
1081 #undef SET_INT64_REP | 1090 #undef SET_INT64_REP |
1082 #undef SET_STR | 1091 #undef SET_STR |
1083 #undef SET_STR_REP | 1092 #undef SET_STR_REP |
1084 | 1093 |
1085 #undef SET_FIELD | 1094 #undef SET_FIELD |
1086 | 1095 |
1087 } // namespace syncer | 1096 } // namespace syncer |
OLD | NEW |