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

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

Issue 11098002: [Sync] Add a new global_id field to sync_pb::TabNavigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't remove unique_id Created 8 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 | Annotate | Revision Log
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 "base/base64.h" 9 #include "base/base64.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 SET_STR(state); 163 SET_STR(state);
164 SET_ENUM(page_transition, GetPageTransitionString); 164 SET_ENUM(page_transition, GetPageTransitionString);
165 SET_ENUM(redirect_type, GetPageTransitionRedirectTypeString); 165 SET_ENUM(redirect_type, GetPageTransitionRedirectTypeString);
166 SET_INT32(unique_id); 166 SET_INT32(unique_id);
167 SET_INT64(timestamp); 167 SET_INT64(timestamp);
168 SET_BOOL(navigation_forward_back); 168 SET_BOOL(navigation_forward_back);
169 SET_BOOL(navigation_from_address_bar), 169 SET_BOOL(navigation_from_address_bar),
170 SET_BOOL(navigation_home_page); 170 SET_BOOL(navigation_home_page);
171 SET_BOOL(navigation_chain_start); 171 SET_BOOL(navigation_chain_start);
172 SET_BOOL(navigation_chain_end); 172 SET_BOOL(navigation_chain_end);
173 SET_INT64(global_id);
173 return value; 174 return value;
174 } 175 }
175 176
176 DictionaryValue* PasswordSpecificsDataToValue( 177 DictionaryValue* PasswordSpecificsDataToValue(
177 const sync_pb::PasswordSpecificsData& proto) { 178 const sync_pb::PasswordSpecificsData& proto) {
178 DictionaryValue* value = new DictionaryValue(); 179 DictionaryValue* value = new DictionaryValue();
179 SET_INT32(scheme); 180 SET_INT32(scheme);
180 SET_STR(signon_realm); 181 SET_STR(signon_realm);
181 SET_STR(origin); 182 SET_STR(origin);
182 SET_STR(action); 183 SET_STR(action);
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 #undef SET_BYTES 599 #undef SET_BYTES
599 #undef SET_INT32 600 #undef SET_INT32
600 #undef SET_INT64 601 #undef SET_INT64
601 #undef SET_INT64_REP 602 #undef SET_INT64_REP
602 #undef SET_STR 603 #undef SET_STR
603 #undef SET_STR_REP 604 #undef SET_STR_REP
604 605
605 #undef SET_FIELD 606 #undef SET_FIELD
606 607
607 } // namespace syncer 608 } // namespace syncer
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_types_unittest.cc ('k') | sync/protocol/session_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698