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

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

Issue 1424493002: [Sync] Deprecate sync session page state field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 SET_ENUM(browser_type, GetBrowserTypeString); 183 SET_ENUM(browser_type, GetBrowserTypeString);
184 return value; 184 return value;
185 } 185 }
186 186
187 scoped_ptr<base::DictionaryValue> TabNavigationToValue( 187 scoped_ptr<base::DictionaryValue> TabNavigationToValue(
188 const sync_pb::TabNavigation& proto) { 188 const sync_pb::TabNavigation& proto) {
189 scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue()); 189 scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue());
190 SET_STR(virtual_url); 190 SET_STR(virtual_url);
191 SET_STR(referrer); 191 SET_STR(referrer);
192 SET_STR(title); 192 SET_STR(title);
193 SET_STR(state);
194 SET_ENUM(page_transition, GetPageTransitionString); 193 SET_ENUM(page_transition, GetPageTransitionString);
195 SET_ENUM(redirect_type, GetPageTransitionRedirectTypeString); 194 SET_ENUM(redirect_type, GetPageTransitionRedirectTypeString);
196 SET_INT32(unique_id); 195 SET_INT32(unique_id);
197 SET_INT64(timestamp_msec); 196 SET_INT64(timestamp_msec);
198 SET_BOOL(navigation_forward_back); 197 SET_BOOL(navigation_forward_back);
199 SET_BOOL(navigation_from_address_bar); 198 SET_BOOL(navigation_from_address_bar);
200 SET_BOOL(navigation_home_page); 199 SET_BOOL(navigation_home_page);
201 SET_BOOL(navigation_chain_start); 200 SET_BOOL(navigation_chain_start);
202 SET_BOOL(navigation_chain_end); 201 SET_BOOL(navigation_chain_end);
203 SET_INT64(global_id); 202 SET_INT64(global_id);
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 #undef SET_BYTES 1078 #undef SET_BYTES
1080 #undef SET_INT32 1079 #undef SET_INT32
1081 #undef SET_INT64 1080 #undef SET_INT64
1082 #undef SET_INT64_REP 1081 #undef SET_INT64_REP
1083 #undef SET_STR 1082 #undef SET_STR
1084 #undef SET_STR_REP 1083 #undef SET_STR_REP
1085 1084
1086 #undef SET_FIELD 1085 #undef SET_FIELD
1087 1086
1088 } // namespace syncer 1087 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698