| 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 "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 DictionaryValue* TabNavigationToValue( | 157 DictionaryValue* TabNavigationToValue( |
| 158 const sync_pb::TabNavigation& proto) { | 158 const sync_pb::TabNavigation& proto) { |
| 159 DictionaryValue* value = new DictionaryValue(); | 159 DictionaryValue* value = new DictionaryValue(); |
| 160 SET_STR(virtual_url); | 160 SET_STR(virtual_url); |
| 161 SET_STR(referrer); | 161 SET_STR(referrer); |
| 162 SET_STR(title); | 162 SET_STR(title); |
| 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_deprecated); |
| 168 SET_INT64(local_timestamp); |
| 168 SET_BOOL(navigation_forward_back); | 169 SET_BOOL(navigation_forward_back); |
| 169 SET_BOOL(navigation_from_address_bar), | 170 SET_BOOL(navigation_from_address_bar), |
| 170 SET_BOOL(navigation_home_page); | 171 SET_BOOL(navigation_home_page); |
| 171 SET_BOOL(navigation_chain_start); | 172 SET_BOOL(navigation_chain_start); |
| 172 SET_BOOL(navigation_chain_end); | 173 SET_BOOL(navigation_chain_end); |
| 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) { |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 #undef SET_BYTES | 595 #undef SET_BYTES |
| 595 #undef SET_INT32 | 596 #undef SET_INT32 |
| 596 #undef SET_INT64 | 597 #undef SET_INT64 |
| 597 #undef SET_INT64_REP | 598 #undef SET_INT64_REP |
| 598 #undef SET_STR | 599 #undef SET_STR |
| 599 #undef SET_STR_REP | 600 #undef SET_STR_REP |
| 600 | 601 |
| 601 #undef SET_FIELD | 602 #undef SET_FIELD |
| 602 | 603 |
| 603 } // namespace syncer | 604 } // namespace syncer |
| OLD | NEW |