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

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

Issue 101573003: Add the navigation redirect-chain to Sync sessions proto for offline analysis. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android unit test (state_serializer_unittests.cc). Created 6 years, 11 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 SET_BOOL(navigation_home_page); 196 SET_BOOL(navigation_home_page);
197 SET_BOOL(navigation_chain_start); 197 SET_BOOL(navigation_chain_start);
198 SET_BOOL(navigation_chain_end); 198 SET_BOOL(navigation_chain_end);
199 SET_INT64(global_id); 199 SET_INT64(global_id);
200 SET_STR(search_terms); 200 SET_STR(search_terms);
201 SET_STR(favicon_url); 201 SET_STR(favicon_url);
202 SET_ENUM(blocked_state, GetBlockedStateString); 202 SET_ENUM(blocked_state, GetBlockedStateString);
203 SET_STR_REP(content_pack_categories); 203 SET_STR_REP(content_pack_categories);
204 SET_INT32(http_status_code); 204 SET_INT32(http_status_code);
205 SET_INT32(referrer_policy); 205 SET_INT32(referrer_policy);
206 SET_REP(navigation_redirect, NavigationRedirectToValue);
207 SET_STR(last_navigation_redirect_url);
206 return value; 208 return value;
207 } 209 }
208 210
211 base::DictionaryValue* NavigationRedirectToValue(
212 const sync_pb::NavigationRedirect& proto) {
213 base::DictionaryValue* value = new base::DictionaryValue();
214 SET_STR(url);
215 return value;
216 }
217
209 base::DictionaryValue* PasswordSpecificsDataToValue( 218 base::DictionaryValue* PasswordSpecificsDataToValue(
210 const sync_pb::PasswordSpecificsData& proto) { 219 const sync_pb::PasswordSpecificsData& proto) {
211 base::DictionaryValue* value = new base::DictionaryValue(); 220 base::DictionaryValue* value = new base::DictionaryValue();
212 SET_INT32(scheme); 221 SET_INT32(scheme);
213 SET_STR(signon_realm); 222 SET_STR(signon_realm);
214 SET_STR(origin); 223 SET_STR(origin);
215 SET_STR(action); 224 SET_STR(action);
216 SET_STR(username_element); 225 SET_STR(username_element);
217 SET_STR(username_value); 226 SET_STR(username_value);
218 SET_STR(password_element); 227 SET_STR(password_element);
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 #undef SET_BYTES 1053 #undef SET_BYTES
1045 #undef SET_INT32 1054 #undef SET_INT32
1046 #undef SET_INT64 1055 #undef SET_INT64
1047 #undef SET_INT64_REP 1056 #undef SET_INT64_REP
1048 #undef SET_STR 1057 #undef SET_STR
1049 #undef SET_STR_REP 1058 #undef SET_STR_REP
1050 1059
1051 #undef SET_FIELD 1060 #undef SET_FIELD
1052 1061
1053 } // namespace syncer 1062 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698