| 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> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 class ManagedUserSharedSettingSpecifics; | 52 class ManagedUserSharedSettingSpecifics; |
| 53 class ManagedUserSpecifics; | 53 class ManagedUserSpecifics; |
| 54 class ManagedUserWhitelistSpecifics; | 54 class ManagedUserWhitelistSpecifics; |
| 55 class Media; | 55 class Media; |
| 56 class NavigationRedirect; | 56 class NavigationRedirect; |
| 57 class NigoriSpecifics; | 57 class NigoriSpecifics; |
| 58 class PasswordSpecifics; | 58 class PasswordSpecifics; |
| 59 class PasswordSpecificsData; | 59 class PasswordSpecificsData; |
| 60 class PreferenceSpecifics; | 60 class PreferenceSpecifics; |
| 61 class PriorityPreferenceSpecifics; | 61 class PriorityPreferenceSpecifics; |
| 62 class PrinterPPDData; |
| 63 class PrintersSpecifics; |
| 62 class SearchEngineSpecifics; | 64 class SearchEngineSpecifics; |
| 63 class SessionHeader; | 65 class SessionHeader; |
| 64 class SessionSpecifics; | 66 class SessionSpecifics; |
| 65 class SessionTab; | 67 class SessionTab; |
| 66 class SessionWindow; | 68 class SessionWindow; |
| 67 class SimpleCollapsedLayout; | 69 class SimpleCollapsedLayout; |
| 68 class SyncCycleCompletedEventInfo; | 70 class SyncCycleCompletedEventInfo; |
| 69 class SyncEntity; | 71 class SyncEntity; |
| 70 class SyncedNotificationAppInfoSpecifics; | 72 class SyncedNotificationAppInfoSpecifics; |
| 71 class SyncedNotificationSpecifics; | 73 class SyncedNotificationSpecifics; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 const sync_pb::TimeRangeDirective& time_range_directive); | 151 const sync_pb::TimeRangeDirective& time_range_directive); |
| 150 | 152 |
| 151 // Sub-protocol of Experiments. | 153 // Sub-protocol of Experiments. |
| 152 | 154 |
| 153 std::unique_ptr<base::DictionaryValue> KeystoreEncryptionToValue( | 155 std::unique_ptr<base::DictionaryValue> KeystoreEncryptionToValue( |
| 154 const sync_pb::KeystoreEncryptionFlagsSpecifics& proto); | 156 const sync_pb::KeystoreEncryptionFlagsSpecifics& proto); |
| 155 | 157 |
| 156 std::unique_ptr<base::DictionaryValue> SessionSpecificsToValue( | 158 std::unique_ptr<base::DictionaryValue> SessionSpecificsToValue( |
| 157 const sync_pb::SessionSpecifics& session_specifics); | 159 const sync_pb::SessionSpecifics& session_specifics); |
| 158 | 160 |
| 161 // Sub-protocol of PrintersSpecifics. |
| 162 |
| 163 std::unique_ptr<base::DictionaryValue> PrinterPPDDataToValue( |
| 164 const sync_pb::PrinterPPDData& proto); |
| 165 |
| 159 // Main *SpecificsToValue functions. | 166 // Main *SpecificsToValue functions. |
| 160 | 167 |
| 161 std::unique_ptr<base::DictionaryValue> AppNotificationToValue( | 168 std::unique_ptr<base::DictionaryValue> AppNotificationToValue( |
| 162 const sync_pb::AppNotification& app_notification_specifics); | 169 const sync_pb::AppNotification& app_notification_specifics); |
| 163 | 170 |
| 164 std::unique_ptr<base::DictionaryValue> AppSettingSpecificsToValue( | 171 std::unique_ptr<base::DictionaryValue> AppSettingSpecificsToValue( |
| 165 const sync_pb::AppSettingSpecifics& app_setting_specifics); | 172 const sync_pb::AppSettingSpecifics& app_setting_specifics); |
| 166 | 173 |
| 167 std::unique_ptr<base::DictionaryValue> AppSpecificsToValue( | 174 std::unique_ptr<base::DictionaryValue> AppSpecificsToValue( |
| 168 const sync_pb::AppSpecifics& app_specifics); | 175 const sync_pb::AppSpecifics& app_specifics); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 239 |
| 233 std::unique_ptr<base::DictionaryValue> NigoriSpecificsToValue( | 240 std::unique_ptr<base::DictionaryValue> NigoriSpecificsToValue( |
| 234 const sync_pb::NigoriSpecifics& nigori_specifics); | 241 const sync_pb::NigoriSpecifics& nigori_specifics); |
| 235 | 242 |
| 236 std::unique_ptr<base::DictionaryValue> PasswordSpecificsToValue( | 243 std::unique_ptr<base::DictionaryValue> PasswordSpecificsToValue( |
| 237 const sync_pb::PasswordSpecifics& password_specifics); | 244 const sync_pb::PasswordSpecifics& password_specifics); |
| 238 | 245 |
| 239 std::unique_ptr<base::DictionaryValue> PreferenceSpecificsToValue( | 246 std::unique_ptr<base::DictionaryValue> PreferenceSpecificsToValue( |
| 240 const sync_pb::PreferenceSpecifics& password_specifics); | 247 const sync_pb::PreferenceSpecifics& password_specifics); |
| 241 | 248 |
| 249 std::unique_ptr<base::DictionaryValue> PrintersSpecificsToValue( |
| 250 const sync_pb::PrintersSpecifics& printers_specifics); |
| 251 |
| 242 std::unique_ptr<base::DictionaryValue> | 252 std::unique_ptr<base::DictionaryValue> |
| 243 SyncedNotificationAppInfoSpecificsToValue( | 253 SyncedNotificationAppInfoSpecificsToValue( |
| 244 const sync_pb::SyncedNotificationAppInfoSpecifics& | 254 const sync_pb::SyncedNotificationAppInfoSpecifics& |
| 245 synced_notification_specifics); | 255 synced_notification_specifics); |
| 246 | 256 |
| 247 std::unique_ptr<base::DictionaryValue> SyncedNotificationSpecificsToValue( | 257 std::unique_ptr<base::DictionaryValue> SyncedNotificationSpecificsToValue( |
| 248 const sync_pb::SyncedNotificationSpecifics& synced_notification_specifics); | 258 const sync_pb::SyncedNotificationSpecifics& synced_notification_specifics); |
| 249 | 259 |
| 250 std::unique_ptr<base::DictionaryValue> SearchEngineSpecificsToValue( | 260 std::unique_ptr<base::DictionaryValue> SearchEngineSpecificsToValue( |
| 251 const sync_pb::SearchEngineSpecifics& search_engine_specifics); | 261 const sync_pb::SearchEngineSpecifics& search_engine_specifics); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 306 |
| 297 std::unique_ptr<base::DictionaryValue> ClientConfigParamsToValue( | 307 std::unique_ptr<base::DictionaryValue> ClientConfigParamsToValue( |
| 298 const sync_pb::ClientConfigParams& proto); | 308 const sync_pb::ClientConfigParams& proto); |
| 299 | 309 |
| 300 std::unique_ptr<base::DictionaryValue> AttachmentIdProtoToValue( | 310 std::unique_ptr<base::DictionaryValue> AttachmentIdProtoToValue( |
| 301 const sync_pb::AttachmentIdProto& proto); | 311 const sync_pb::AttachmentIdProto& proto); |
| 302 | 312 |
| 303 } // namespace syncer | 313 } // namespace syncer |
| 304 | 314 |
| 305 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 315 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
| OLD | NEW |