Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: sync/protocol/proto_value_conversions.cc

Issue 869613006: Move referrer policy to a different field when serializing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/sessions/serialized_navigation_entry_unittest.cc ('k') | sync/protocol/session_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698