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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 SET_BOOL(navigation_from_address_bar); | 203 SET_BOOL(navigation_from_address_bar); |
204 SET_BOOL(navigation_home_page); | 204 SET_BOOL(navigation_home_page); |
205 SET_BOOL(navigation_chain_start); | 205 SET_BOOL(navigation_chain_start); |
206 SET_BOOL(navigation_chain_end); | 206 SET_BOOL(navigation_chain_end); |
207 SET_INT64(global_id); | 207 SET_INT64(global_id); |
208 SET_STR(search_terms); | 208 SET_STR(search_terms); |
209 SET_STR(favicon_url); | 209 SET_STR(favicon_url); |
210 SET_ENUM(blocked_state, GetBlockedStateString); | 210 SET_ENUM(blocked_state, GetBlockedStateString); |
211 SET_STR_REP(content_pack_categories); | 211 SET_STR_REP(content_pack_categories); |
212 SET_INT32(http_status_code); | 212 SET_INT32(http_status_code); |
213 SET_INT32(referrer_policy); | 213 SET_INT32(obsolete_referrer_policy); |
214 SET_BOOL(is_restored); | 214 SET_BOOL(is_restored); |
215 SET_REP(navigation_redirect, NavigationRedirectToValue); | 215 SET_REP(navigation_redirect, NavigationRedirectToValue); |
216 SET_STR(last_navigation_redirect_url); | 216 SET_STR(last_navigation_redirect_url); |
| 217 SET_INT32(correct_referrer_policy); |
217 return value; | 218 return value; |
218 } | 219 } |
219 | 220 |
220 base::DictionaryValue* NavigationRedirectToValue( | 221 base::DictionaryValue* NavigationRedirectToValue( |
221 const sync_pb::NavigationRedirect& proto) { | 222 const sync_pb::NavigationRedirect& proto) { |
222 base::DictionaryValue* value = new base::DictionaryValue(); | 223 base::DictionaryValue* value = new base::DictionaryValue(); |
223 SET_STR(url); | 224 SET_STR(url); |
224 return value; | 225 return value; |
225 } | 226 } |
226 | 227 |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 #undef SET_BYTES | 1016 #undef SET_BYTES |
1016 #undef SET_INT32 | 1017 #undef SET_INT32 |
1017 #undef SET_INT64 | 1018 #undef SET_INT64 |
1018 #undef SET_INT64_REP | 1019 #undef SET_INT64_REP |
1019 #undef SET_STR | 1020 #undef SET_STR |
1020 #undef SET_STR_REP | 1021 #undef SET_STR_REP |
1021 | 1022 |
1022 #undef SET_FIELD | 1023 #undef SET_FIELD |
1023 | 1024 |
1024 } // namespace syncer | 1025 } // namespace syncer |
OLD | NEW |