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 SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 7 #ifndef SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
8 #define SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 8 #define SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
9 | 9 |
10 #include "sync/base/sync_export.h" | 10 #include "sync/base/sync_export.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 class EntitySpecifics; | 36 class EntitySpecifics; |
37 class EverythingDirective; | 37 class EverythingDirective; |
38 class ExperimentsSpecifics; | 38 class ExperimentsSpecifics; |
39 class ExtensionSettingSpecifics; | 39 class ExtensionSettingSpecifics; |
40 class ExtensionSpecifics; | 40 class ExtensionSpecifics; |
41 class FaviconImageSpecifics; | 41 class FaviconImageSpecifics; |
42 class FaviconTrackingSpecifics; | 42 class FaviconTrackingSpecifics; |
43 class GlobalIdDirective; | 43 class GlobalIdDirective; |
44 class HistoryDeleteDirectiveSpecifics; | 44 class HistoryDeleteDirectiveSpecifics; |
45 class KeystoreEncryptionFlagsSpecifics; | 45 class KeystoreEncryptionFlagsSpecifics; |
| 46 class Media; |
46 class ManagedUserSettingSpecifics; | 47 class ManagedUserSettingSpecifics; |
47 class ManagedUserSpecifics; | 48 class ManagedUserSpecifics; |
48 class NigoriSpecifics; | 49 class NigoriSpecifics; |
49 class PasswordSpecifics; | 50 class PasswordSpecifics; |
50 class PasswordSpecificsData; | 51 class PasswordSpecificsData; |
51 class PreferenceSpecifics; | 52 class PreferenceSpecifics; |
52 class PriorityPreferenceSpecifics; | 53 class PriorityPreferenceSpecifics; |
53 class SearchEngineSpecifics; | 54 class SearchEngineSpecifics; |
54 class SessionHeader; | 55 class SessionHeader; |
55 class SessionSpecifics; | 56 class SessionSpecifics; |
56 class SessionTab; | 57 class SessionTab; |
57 class SessionWindow; | 58 class SessionWindow; |
58 class SimpleCollapsedLayout; | 59 class SimpleCollapsedLayout; |
59 class SyncCycleCompletedEventInfo; | 60 class SyncCycleCompletedEventInfo; |
| 61 class SyncedNotificationImage; |
| 62 class SyncedNotificationProfileImage; |
60 class SyncedNotificationRenderInfo; | 63 class SyncedNotificationRenderInfo; |
61 class SyncedNotificationSpecifics; | 64 class SyncedNotificationSpecifics; |
62 class TabNavigation; | 65 class TabNavigation; |
63 class ThemeSpecifics; | 66 class ThemeSpecifics; |
64 class TimeRangeDirective; | 67 class TimeRangeDirective; |
65 class TypedUrlSpecifics; | 68 class TypedUrlSpecifics; |
66 } // namespace sync_pb | 69 } // namespace sync_pb |
67 | 70 |
68 // Utility functions to convert sync protocol buffers to dictionaries. | 71 // Utility functions to convert sync protocol buffers to dictionaries. |
69 // Each protocol field is mapped to a key of the same name. Repeated | 72 // Each protocol field is mapped to a key of the same name. Repeated |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 SYNC_EXPORT base::DictionaryValue* HistoryDeleteDirectiveSpecificsToValue( | 188 SYNC_EXPORT base::DictionaryValue* HistoryDeleteDirectiveSpecificsToValue( |
186 const sync_pb::HistoryDeleteDirectiveSpecifics& | 189 const sync_pb::HistoryDeleteDirectiveSpecifics& |
187 history_delete_directive_specifics); | 190 history_delete_directive_specifics); |
188 | 191 |
189 SYNC_EXPORT_PRIVATE base::DictionaryValue* ManagedUserSettingSpecificsToValue( | 192 SYNC_EXPORT_PRIVATE base::DictionaryValue* ManagedUserSettingSpecificsToValue( |
190 const sync_pb::ManagedUserSettingSpecifics& managed_user_setting_specifics); | 193 const sync_pb::ManagedUserSettingSpecifics& managed_user_setting_specifics); |
191 | 194 |
192 SYNC_EXPORT_PRIVATE base::DictionaryValue* ManagedUserSpecificsToValue( | 195 SYNC_EXPORT_PRIVATE base::DictionaryValue* ManagedUserSpecificsToValue( |
193 const sync_pb::ManagedUserSpecifics& managed_user_specifics); | 196 const sync_pb::ManagedUserSpecifics& managed_user_specifics); |
194 | 197 |
| 198 SYNC_EXPORT_PRIVATE base::DictionaryValue* MediaToValue( |
| 199 const sync_pb::Media& media); |
| 200 |
195 SYNC_EXPORT_PRIVATE base::DictionaryValue* NigoriSpecificsToValue( | 201 SYNC_EXPORT_PRIVATE base::DictionaryValue* NigoriSpecificsToValue( |
196 const sync_pb::NigoriSpecifics& nigori_specifics); | 202 const sync_pb::NigoriSpecifics& nigori_specifics); |
197 | 203 |
198 SYNC_EXPORT_PRIVATE base::DictionaryValue* PasswordSpecificsToValue( | 204 SYNC_EXPORT_PRIVATE base::DictionaryValue* PasswordSpecificsToValue( |
199 const sync_pb::PasswordSpecifics& password_specifics); | 205 const sync_pb::PasswordSpecifics& password_specifics); |
200 | 206 |
201 SYNC_EXPORT_PRIVATE base::DictionaryValue* PreferenceSpecificsToValue( | 207 SYNC_EXPORT_PRIVATE base::DictionaryValue* PreferenceSpecificsToValue( |
202 const sync_pb::PreferenceSpecifics& password_specifics); | 208 const sync_pb::PreferenceSpecifics& password_specifics); |
203 | 209 |
204 SYNC_EXPORT_PRIVATE base::DictionaryValue* SyncedNotificationSpecificsToValue( | 210 SYNC_EXPORT_PRIVATE base::DictionaryValue* SyncedNotificationSpecificsToValue( |
205 const sync_pb::SyncedNotificationSpecifics& | 211 const sync_pb::SyncedNotificationSpecifics& |
206 synced_notification_specifics); | 212 synced_notification_specifics); |
207 | 213 |
208 SYNC_EXPORT_PRIVATE base::DictionaryValue* SearchEngineSpecificsToValue( | 214 SYNC_EXPORT_PRIVATE base::DictionaryValue* SearchEngineSpecificsToValue( |
209 const sync_pb::SearchEngineSpecifics& search_engine_specifics); | 215 const sync_pb::SearchEngineSpecifics& search_engine_specifics); |
210 | 216 |
211 SYNC_EXPORT_PRIVATE base::DictionaryValue* SessionSpecificsToValue( | 217 SYNC_EXPORT_PRIVATE base::DictionaryValue* SessionSpecificsToValue( |
212 const sync_pb::SessionSpecifics& session_specifics); | 218 const sync_pb::SessionSpecifics& session_specifics); |
213 | 219 |
| 220 SYNC_EXPORT_PRIVATE base::DictionaryValue* SyncedNotificationImageToValue( |
| 221 const sync_pb::SyncedNotificationImage& image); |
| 222 |
| 223 SYNC_EXPORT_PRIVATE base::DictionaryValue* |
| 224 SyncedNotificationProfileImageToValue( |
| 225 const sync_pb::SyncedNotificationProfileImage& image); |
| 226 |
214 SYNC_EXPORT_PRIVATE base::DictionaryValue* ThemeSpecificsToValue( | 227 SYNC_EXPORT_PRIVATE base::DictionaryValue* ThemeSpecificsToValue( |
215 const sync_pb::ThemeSpecifics& theme_specifics); | 228 const sync_pb::ThemeSpecifics& theme_specifics); |
216 | 229 |
217 SYNC_EXPORT_PRIVATE base::DictionaryValue* TypedUrlSpecificsToValue( | 230 SYNC_EXPORT_PRIVATE base::DictionaryValue* TypedUrlSpecificsToValue( |
218 const sync_pb::TypedUrlSpecifics& typed_url_specifics); | 231 const sync_pb::TypedUrlSpecifics& typed_url_specifics); |
219 | 232 |
220 // Any present extensions are mapped to sub-dictionary values with the | 233 // Any present extensions are mapped to sub-dictionary values with the |
221 // key equal to the extension name. | 234 // key equal to the extension name. |
222 SYNC_EXPORT_PRIVATE base::DictionaryValue* EntitySpecificsToValue( | 235 SYNC_EXPORT_PRIVATE base::DictionaryValue* EntitySpecificsToValue( |
223 const sync_pb::EntitySpecifics& specifics); | 236 const sync_pb::EntitySpecifics& specifics); |
(...skipping 17 matching lines...) Expand all Loading... |
241 | 254 |
242 base::DictionaryValue* SyncCycleCompletedEventInfoToValue( | 255 base::DictionaryValue* SyncCycleCompletedEventInfoToValue( |
243 const sync_pb::SyncCycleCompletedEventInfo& proto); | 256 const sync_pb::SyncCycleCompletedEventInfo& proto); |
244 | 257 |
245 base::DictionaryValue* ClientConfigParamsToValue( | 258 base::DictionaryValue* ClientConfigParamsToValue( |
246 const sync_pb::ClientConfigParams& proto); | 259 const sync_pb::ClientConfigParams& proto); |
247 | 260 |
248 } // namespace syncer | 261 } // namespace syncer |
249 | 262 |
250 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 263 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
OLD | NEW |