| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 7 #ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
| 8 #define COMPONENTS_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 8 #define COMPONENTS_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "components/sync/base/sync_export.h" | |
| 13 | |
| 14 namespace base { | 12 namespace base { |
| 15 class DictionaryValue; | 13 class DictionaryValue; |
| 16 } | 14 } |
| 17 | 15 |
| 18 namespace sync_pb { | 16 namespace sync_pb { |
| 19 class AppListSpecifics; | 17 class AppListSpecifics; |
| 20 class AppNotification; | 18 class AppNotification; |
| 21 class AppNotificationSettings; | 19 class AppNotificationSettings; |
| 22 class AppSettingSpecifics; | 20 class AppSettingSpecifics; |
| 23 class AppSpecifics; | 21 class AppSpecifics; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // TODO(akalin): Add has_* information. | 88 // TODO(akalin): Add has_* information. |
| 91 // | 89 // |
| 92 // TODO(akalin): Improve enum support. | 90 // TODO(akalin): Improve enum support. |
| 93 | 91 |
| 94 namespace syncer { | 92 namespace syncer { |
| 95 | 93 |
| 96 // Ownership of all returned DictionaryValues are transferred to the | 94 // Ownership of all returned DictionaryValues are transferred to the |
| 97 // caller. | 95 // caller. |
| 98 | 96 |
| 99 // TODO(akalin): Perhaps extend this to decrypt? | 97 // TODO(akalin): Perhaps extend this to decrypt? |
| 100 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> EncryptedDataToValue( | 98 std::unique_ptr<base::DictionaryValue> EncryptedDataToValue( |
| 101 const sync_pb::EncryptedData& encrypted_data); | 99 const sync_pb::EncryptedData& encrypted_data); |
| 102 | 100 |
| 103 // Sub-protocol of AppListSpecifics. | 101 // Sub-protocol of AppListSpecifics. |
| 104 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AppListSpecificsToValue( | 102 std::unique_ptr<base::DictionaryValue> AppListSpecificsToValue( |
| 105 const sync_pb::AppListSpecifics& proto); | 103 const sync_pb::AppListSpecifics& proto); |
| 106 | 104 |
| 107 // Sub-protocols of AppSpecifics. | 105 // Sub-protocols of AppSpecifics. |
| 108 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AppSettingsToValue( | 106 std::unique_ptr<base::DictionaryValue> AppSettingsToValue( |
| 109 const sync_pb::AppNotificationSettings& app_notification_settings); | 107 const sync_pb::AppNotificationSettings& app_notification_settings); |
| 110 | 108 |
| 111 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> LinkedAppIconInfoToValue( | 109 std::unique_ptr<base::DictionaryValue> LinkedAppIconInfoToValue( |
| 112 const sync_pb::LinkedAppIconInfo& linked_app_icon_info); | 110 const sync_pb::LinkedAppIconInfo& linked_app_icon_info); |
| 113 | 111 |
| 114 // Sub-protocol of ArcPackageSpecifics. | 112 // Sub-protocol of ArcPackageSpecifics. |
| 115 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> ArcPackageSpecificsToValue( | 113 std::unique_ptr<base::DictionaryValue> ArcPackageSpecificsToValue( |
| 116 const sync_pb::ArcPackageSpecifics& proto); | 114 const sync_pb::ArcPackageSpecifics& proto); |
| 117 | 115 |
| 118 // Sub-protocols of SessionSpecifics. | 116 // Sub-protocols of SessionSpecifics. |
| 119 | 117 |
| 120 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SessionHeaderToValue( | 118 std::unique_ptr<base::DictionaryValue> SessionHeaderToValue( |
| 121 const sync_pb::SessionHeader& session_header); | 119 const sync_pb::SessionHeader& session_header); |
| 122 | 120 |
| 123 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SessionTabToValue( | 121 std::unique_ptr<base::DictionaryValue> SessionTabToValue( |
| 124 const sync_pb::SessionTab& session_tab); | 122 const sync_pb::SessionTab& session_tab); |
| 125 | 123 |
| 126 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SessionWindowToValue( | 124 std::unique_ptr<base::DictionaryValue> SessionWindowToValue( |
| 127 const sync_pb::SessionWindow& session_window); | 125 const sync_pb::SessionWindow& session_window); |
| 128 | 126 |
| 129 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> TabNavigationToValue( | 127 std::unique_ptr<base::DictionaryValue> TabNavigationToValue( |
| 130 const sync_pb::TabNavigation& tab_navigation); | 128 const sync_pb::TabNavigation& tab_navigation); |
| 131 | 129 |
| 132 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> NavigationRedirectToValue( | 130 std::unique_ptr<base::DictionaryValue> NavigationRedirectToValue( |
| 133 const sync_pb::NavigationRedirect& navigation_redirect); | 131 const sync_pb::NavigationRedirect& navigation_redirect); |
| 134 | 132 |
| 135 // Sub-protocol of PasswordSpecifics. | 133 // Sub-protocol of PasswordSpecifics. |
| 136 | 134 |
| 137 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> PasswordSpecificsDataToValue( | 135 std::unique_ptr<base::DictionaryValue> PasswordSpecificsDataToValue( |
| 138 const sync_pb::PasswordSpecificsData& password_specifics_data); | 136 const sync_pb::PasswordSpecificsData& password_specifics_data); |
| 139 | 137 |
| 140 // Sub-protocol of NigoriSpecifics. | 138 // Sub-protocol of NigoriSpecifics. |
| 141 | 139 |
| 142 std::unique_ptr<base::DictionaryValue> DeviceInformationToValue( | 140 std::unique_ptr<base::DictionaryValue> DeviceInformationToValue( |
| 143 const sync_pb::DeviceInformation& device_information); | 141 const sync_pb::DeviceInformation& device_information); |
| 144 | 142 |
| 145 // Sub-protocol of HistoryDeleteDirectiveSpecifics. | 143 // Sub-protocol of HistoryDeleteDirectiveSpecifics. |
| 146 | 144 |
| 147 std::unique_ptr<base::DictionaryValue> GlobalIdDirectiveToValue( | 145 std::unique_ptr<base::DictionaryValue> GlobalIdDirectiveToValue( |
| 148 const sync_pb::GlobalIdDirective& global_id_directive); | 146 const sync_pb::GlobalIdDirective& global_id_directive); |
| 149 | 147 |
| 150 std::unique_ptr<base::DictionaryValue> TimeRangeDirectiveToValue( | 148 std::unique_ptr<base::DictionaryValue> TimeRangeDirectiveToValue( |
| 151 const sync_pb::TimeRangeDirective& time_range_directive); | 149 const sync_pb::TimeRangeDirective& time_range_directive); |
| 152 | 150 |
| 153 // Sub-protocol of Experiments. | 151 // Sub-protocol of Experiments. |
| 154 | 152 |
| 155 std::unique_ptr<base::DictionaryValue> KeystoreEncryptionToValue( | 153 std::unique_ptr<base::DictionaryValue> KeystoreEncryptionToValue( |
| 156 const sync_pb::KeystoreEncryptionFlagsSpecifics& proto); | 154 const sync_pb::KeystoreEncryptionFlagsSpecifics& proto); |
| 157 | 155 |
| 158 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SessionSpecificsToValue( | 156 std::unique_ptr<base::DictionaryValue> SessionSpecificsToValue( |
| 159 const sync_pb::SessionSpecifics& session_specifics); | 157 const sync_pb::SessionSpecifics& session_specifics); |
| 160 | 158 |
| 161 // Main *SpecificsToValue functions. | 159 // Main *SpecificsToValue functions. |
| 162 | 160 |
| 163 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AppNotificationToValue( | 161 std::unique_ptr<base::DictionaryValue> AppNotificationToValue( |
| 164 const sync_pb::AppNotification& app_notification_specifics); | 162 const sync_pb::AppNotification& app_notification_specifics); |
| 165 | 163 |
| 166 std::unique_ptr<base::DictionaryValue> AppSettingSpecificsToValue( | 164 std::unique_ptr<base::DictionaryValue> AppSettingSpecificsToValue( |
| 167 const sync_pb::AppSettingSpecifics& app_setting_specifics); | 165 const sync_pb::AppSettingSpecifics& app_setting_specifics); |
| 168 | 166 |
| 169 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AppSpecificsToValue( | 167 std::unique_ptr<base::DictionaryValue> AppSpecificsToValue( |
| 170 const sync_pb::AppSpecifics& app_specifics); | 168 const sync_pb::AppSpecifics& app_specifics); |
| 171 | 169 |
| 172 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> ArticleSpecificsToValue( | 170 std::unique_ptr<base::DictionaryValue> ArticleSpecificsToValue( |
| 173 const sync_pb::ArticleSpecifics& article_specifics); | 171 const sync_pb::ArticleSpecifics& article_specifics); |
| 174 | 172 |
| 175 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AutofillSpecificsToValue( | 173 std::unique_ptr<base::DictionaryValue> AutofillSpecificsToValue( |
| 176 const sync_pb::AutofillSpecifics& autofill_specifics); | 174 const sync_pb::AutofillSpecifics& autofill_specifics); |
| 177 | 175 |
| 178 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 176 std::unique_ptr<base::DictionaryValue> AutofillProfileSpecificsToValue( |
| 179 AutofillProfileSpecificsToValue( | |
| 180 const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics); | 177 const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics); |
| 181 | 178 |
| 182 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 179 std::unique_ptr<base::DictionaryValue> WalletMetadataSpecificsToValue( |
| 183 WalletMetadataSpecificsToValue( | |
| 184 const sync_pb::WalletMetadataSpecifics& wallet_metadata_specifics); | 180 const sync_pb::WalletMetadataSpecifics& wallet_metadata_specifics); |
| 185 | 181 |
| 186 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 182 std::unique_ptr<base::DictionaryValue> AutofillWalletSpecificsToValue( |
| 187 AutofillWalletSpecificsToValue( | |
| 188 const sync_pb::AutofillWalletSpecifics& autofill_wallet_specifics); | 183 const sync_pb::AutofillWalletSpecifics& autofill_wallet_specifics); |
| 189 | 184 |
| 190 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> BookmarkSpecificsToValue( | 185 std::unique_ptr<base::DictionaryValue> BookmarkSpecificsToValue( |
| 191 const sync_pb::BookmarkSpecifics& bookmark_specifics); | 186 const sync_pb::BookmarkSpecifics& bookmark_specifics); |
| 192 | 187 |
| 193 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> DeviceInfoSpecificsToValue( | 188 std::unique_ptr<base::DictionaryValue> DeviceInfoSpecificsToValue( |
| 194 const sync_pb::DeviceInfoSpecifics& device_info_specifics); | 189 const sync_pb::DeviceInfoSpecifics& device_info_specifics); |
| 195 | 190 |
| 196 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> DictionarySpecificsToValue( | 191 std::unique_ptr<base::DictionaryValue> DictionarySpecificsToValue( |
| 197 const sync_pb::DictionarySpecifics& dictionary_specifics); | 192 const sync_pb::DictionarySpecifics& dictionary_specifics); |
| 198 | 193 |
| 199 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> ExperimentsSpecificsToValue( | 194 std::unique_ptr<base::DictionaryValue> ExperimentsSpecificsToValue( |
| 200 const sync_pb::ExperimentsSpecifics& proto); | 195 const sync_pb::ExperimentsSpecifics& proto); |
| 201 | 196 |
| 202 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 197 std::unique_ptr<base::DictionaryValue> PriorityPreferenceSpecificsToValue( |
| 203 PriorityPreferenceSpecificsToValue( | |
| 204 const sync_pb::PriorityPreferenceSpecifics& proto); | 198 const sync_pb::PriorityPreferenceSpecifics& proto); |
| 205 | 199 |
| 206 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 200 std::unique_ptr<base::DictionaryValue> ExtensionSettingSpecificsToValue( |
| 207 ExtensionSettingSpecificsToValue( | |
| 208 const sync_pb::ExtensionSettingSpecifics& extension_setting_specifics); | 201 const sync_pb::ExtensionSettingSpecifics& extension_setting_specifics); |
| 209 | 202 |
| 210 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> ExtensionSpecificsToValue( | 203 std::unique_ptr<base::DictionaryValue> ExtensionSpecificsToValue( |
| 211 const sync_pb::ExtensionSpecifics& extension_specifics); | 204 const sync_pb::ExtensionSpecifics& extension_specifics); |
| 212 | 205 |
| 213 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> FaviconImageSpecificsToValue( | 206 std::unique_ptr<base::DictionaryValue> FaviconImageSpecificsToValue( |
| 214 const sync_pb::FaviconImageSpecifics& favicon_image_specifics); | 207 const sync_pb::FaviconImageSpecifics& favicon_image_specifics); |
| 215 | 208 |
| 216 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 209 std::unique_ptr<base::DictionaryValue> FaviconTrackingSpecificsToValue( |
| 217 FaviconTrackingSpecificsToValue( | |
| 218 const sync_pb::FaviconTrackingSpecifics& favicon_tracking_specifics); | 210 const sync_pb::FaviconTrackingSpecifics& favicon_tracking_specifics); |
| 219 | 211 |
| 220 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 212 std::unique_ptr<base::DictionaryValue> HistoryDeleteDirectiveSpecificsToValue( |
| 221 HistoryDeleteDirectiveSpecificsToValue( | |
| 222 const sync_pb::HistoryDeleteDirectiveSpecifics& | 213 const sync_pb::HistoryDeleteDirectiveSpecifics& |
| 223 history_delete_directive_specifics); | 214 history_delete_directive_specifics); |
| 224 | 215 |
| 225 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 216 std::unique_ptr<base::DictionaryValue> ManagedUserSettingSpecificsToValue( |
| 226 ManagedUserSettingSpecificsToValue( | |
| 227 const sync_pb::ManagedUserSettingSpecifics& managed_user_setting_specifics); | 217 const sync_pb::ManagedUserSettingSpecifics& managed_user_setting_specifics); |
| 228 | 218 |
| 229 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> ManagedUserSpecificsToValue( | 219 std::unique_ptr<base::DictionaryValue> ManagedUserSpecificsToValue( |
| 230 const sync_pb::ManagedUserSpecifics& managed_user_specifics); | 220 const sync_pb::ManagedUserSpecifics& managed_user_specifics); |
| 231 | 221 |
| 232 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 222 std::unique_ptr<base::DictionaryValue> ManagedUserSharedSettingSpecificsToValue( |
| 233 ManagedUserSharedSettingSpecificsToValue( | |
| 234 const sync_pb::ManagedUserSharedSettingSpecifics& | 223 const sync_pb::ManagedUserSharedSettingSpecifics& |
| 235 managed_user_shared_setting_specifics); | 224 managed_user_shared_setting_specifics); |
| 236 | 225 |
| 237 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 226 std::unique_ptr<base::DictionaryValue> ManagedUserWhitelistSpecificsToValue( |
| 238 ManagedUserWhitelistSpecificsToValue( | |
| 239 const sync_pb::ManagedUserWhitelistSpecifics& | 227 const sync_pb::ManagedUserWhitelistSpecifics& |
| 240 managed_user_whitelist_specifics); | 228 managed_user_whitelist_specifics); |
| 241 | 229 |
| 242 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> MediaToValue( | 230 std::unique_ptr<base::DictionaryValue> MediaToValue( |
| 243 const sync_pb::Media& media); | 231 const sync_pb::Media& media); |
| 244 | 232 |
| 245 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> NigoriSpecificsToValue( | 233 std::unique_ptr<base::DictionaryValue> NigoriSpecificsToValue( |
| 246 const sync_pb::NigoriSpecifics& nigori_specifics); | 234 const sync_pb::NigoriSpecifics& nigori_specifics); |
| 247 | 235 |
| 248 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> PasswordSpecificsToValue( | 236 std::unique_ptr<base::DictionaryValue> PasswordSpecificsToValue( |
| 249 const sync_pb::PasswordSpecifics& password_specifics); | 237 const sync_pb::PasswordSpecifics& password_specifics); |
| 250 | 238 |
| 251 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> PreferenceSpecificsToValue( | 239 std::unique_ptr<base::DictionaryValue> PreferenceSpecificsToValue( |
| 252 const sync_pb::PreferenceSpecifics& password_specifics); | 240 const sync_pb::PreferenceSpecifics& password_specifics); |
| 253 | 241 |
| 254 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 242 std::unique_ptr<base::DictionaryValue> |
| 255 SyncedNotificationAppInfoSpecificsToValue( | 243 SyncedNotificationAppInfoSpecificsToValue( |
| 256 const sync_pb::SyncedNotificationAppInfoSpecifics& | 244 const sync_pb::SyncedNotificationAppInfoSpecifics& |
| 257 synced_notification_specifics); | 245 synced_notification_specifics); |
| 258 | 246 |
| 259 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 247 std::unique_ptr<base::DictionaryValue> SyncedNotificationSpecificsToValue( |
| 260 SyncedNotificationSpecificsToValue( | |
| 261 const sync_pb::SyncedNotificationSpecifics& synced_notification_specifics); | 248 const sync_pb::SyncedNotificationSpecifics& synced_notification_specifics); |
| 262 | 249 |
| 263 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SearchEngineSpecificsToValue( | 250 std::unique_ptr<base::DictionaryValue> SearchEngineSpecificsToValue( |
| 264 const sync_pb::SearchEngineSpecifics& search_engine_specifics); | 251 const sync_pb::SearchEngineSpecifics& search_engine_specifics); |
| 265 | 252 |
| 266 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> ThemeSpecificsToValue( | 253 std::unique_ptr<base::DictionaryValue> ThemeSpecificsToValue( |
| 267 const sync_pb::ThemeSpecifics& theme_specifics); | 254 const sync_pb::ThemeSpecifics& theme_specifics); |
| 268 | 255 |
| 269 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> TypedUrlSpecificsToValue( | 256 std::unique_ptr<base::DictionaryValue> TypedUrlSpecificsToValue( |
| 270 const sync_pb::TypedUrlSpecifics& typed_url_specifics); | 257 const sync_pb::TypedUrlSpecifics& typed_url_specifics); |
| 271 | 258 |
| 272 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 259 std::unique_ptr<base::DictionaryValue> WalletMaskedCreditCardToValue( |
| 273 WalletMaskedCreditCardToValue( | |
| 274 const sync_pb::WalletMaskedCreditCard& wallet_masked_card); | 260 const sync_pb::WalletMaskedCreditCard& wallet_masked_card); |
| 275 | 261 |
| 276 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> WalletPostalAddressToValue( | 262 std::unique_ptr<base::DictionaryValue> WalletPostalAddressToValue( |
| 277 const sync_pb::WalletPostalAddress& wallet_postal_address); | 263 const sync_pb::WalletPostalAddress& wallet_postal_address); |
| 278 | 264 |
| 279 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 265 std::unique_ptr<base::DictionaryValue> WifiCredentialSpecificsToValue( |
| 280 WifiCredentialSpecificsToValue( | |
| 281 const sync_pb::WifiCredentialSpecifics& wifi_credential_specifics); | 266 const sync_pb::WifiCredentialSpecifics& wifi_credential_specifics); |
| 282 | 267 |
| 283 // Any present extensions are mapped to sub-dictionary values with the | 268 // Any present extensions are mapped to sub-dictionary values with the |
| 284 // key equal to the extension name. | 269 // key equal to the extension name. |
| 285 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> EntitySpecificsToValue( | 270 std::unique_ptr<base::DictionaryValue> EntitySpecificsToValue( |
| 286 const sync_pb::EntitySpecifics& specifics); | 271 const sync_pb::EntitySpecifics& specifics); |
| 287 | 272 |
| 288 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SyncEntityToValue( | 273 std::unique_ptr<base::DictionaryValue> SyncEntityToValue( |
| 289 const sync_pb::SyncEntity& entity, | 274 const sync_pb::SyncEntity& entity, |
| 290 bool include_specifics); | 275 bool include_specifics); |
| 291 | 276 |
| 292 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> ClientToServerMessageToValue( | 277 std::unique_ptr<base::DictionaryValue> ClientToServerMessageToValue( |
| 293 const sync_pb::ClientToServerMessage& proto, | 278 const sync_pb::ClientToServerMessage& proto, |
| 294 bool include_specifics); | 279 bool include_specifics); |
| 295 | 280 |
| 296 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> | 281 std::unique_ptr<base::DictionaryValue> ClientToServerResponseToValue( |
| 297 ClientToServerResponseToValue(const sync_pb::ClientToServerResponse& proto, | 282 const sync_pb::ClientToServerResponse& proto, |
| 298 bool include_specifics); | 283 bool include_specifics); |
| 299 | 284 |
| 300 std::unique_ptr<base::DictionaryValue> DatatypeAssociationStatsToValue( | 285 std::unique_ptr<base::DictionaryValue> DatatypeAssociationStatsToValue( |
| 301 const sync_pb::DatatypeAssociationStats& proto); | 286 const sync_pb::DatatypeAssociationStats& proto); |
| 302 | 287 |
| 303 std::unique_ptr<base::DictionaryValue> DebugEventInfoToValue( | 288 std::unique_ptr<base::DictionaryValue> DebugEventInfoToValue( |
| 304 const sync_pb::DebugEventInfo& proto); | 289 const sync_pb::DebugEventInfo& proto); |
| 305 | 290 |
| 306 std::unique_ptr<base::DictionaryValue> DebugInfoToValue( | 291 std::unique_ptr<base::DictionaryValue> DebugInfoToValue( |
| 307 const sync_pb::DebugInfo& proto); | 292 const sync_pb::DebugInfo& proto); |
| 308 | 293 |
| 309 std::unique_ptr<base::DictionaryValue> SyncCycleCompletedEventInfoToValue( | 294 std::unique_ptr<base::DictionaryValue> SyncCycleCompletedEventInfoToValue( |
| 310 const sync_pb::SyncCycleCompletedEventInfo& proto); | 295 const sync_pb::SyncCycleCompletedEventInfo& proto); |
| 311 | 296 |
| 312 std::unique_ptr<base::DictionaryValue> ClientConfigParamsToValue( | 297 std::unique_ptr<base::DictionaryValue> ClientConfigParamsToValue( |
| 313 const sync_pb::ClientConfigParams& proto); | 298 const sync_pb::ClientConfigParams& proto); |
| 314 | 299 |
| 315 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AttachmentIdProtoToValue( | 300 std::unique_ptr<base::DictionaryValue> AttachmentIdProtoToValue( |
| 316 const sync_pb::AttachmentIdProto& proto); | 301 const sync_pb::AttachmentIdProto& proto); |
| 317 | 302 |
| 318 } // namespace syncer | 303 } // namespace syncer |
| 319 | 304 |
| 320 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 305 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
| OLD | NEW |