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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 class EverythingDirective; | 41 class EverythingDirective; |
42 class ExperimentsSpecifics; | 42 class ExperimentsSpecifics; |
43 class ExtensionSettingSpecifics; | 43 class ExtensionSettingSpecifics; |
44 class ExtensionSpecifics; | 44 class ExtensionSpecifics; |
45 class FaviconImageSpecifics; | 45 class FaviconImageSpecifics; |
46 class FaviconTrackingSpecifics; | 46 class FaviconTrackingSpecifics; |
47 class GlobalIdDirective; | 47 class GlobalIdDirective; |
48 class HistoryDeleteDirectiveSpecifics; | 48 class HistoryDeleteDirectiveSpecifics; |
49 class KeystoreEncryptionFlagsSpecifics; | 49 class KeystoreEncryptionFlagsSpecifics; |
50 class LinkedAppIconInfo; | 50 class LinkedAppIconInfo; |
51 class Media; | |
52 class ManagedUserSettingSpecifics; | 51 class ManagedUserSettingSpecifics; |
53 class ManagedUserSharedSettingSpecifics; | 52 class ManagedUserSharedSettingSpecifics; |
54 class ManagedUserSpecifics; | 53 class ManagedUserSpecifics; |
55 class ManagedUserWhitelistSpecifics; | 54 class ManagedUserWhitelistSpecifics; |
| 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 SearchEngineSpecifics; | 62 class SearchEngineSpecifics; |
63 class SessionHeader; | 63 class SessionHeader; |
64 class SessionSpecifics; | 64 class SessionSpecifics; |
65 class SessionTab; | 65 class SessionTab; |
66 class SessionWindow; | 66 class SessionWindow; |
67 class SimpleCollapsedLayout; | 67 class SimpleCollapsedLayout; |
68 class SyncCycleCompletedEventInfo; | 68 class SyncCycleCompletedEventInfo; |
69 class SyncEntity; | 69 class SyncEntity; |
70 class SyncedNotificationAppInfoSpecifics; | 70 class SyncedNotificationAppInfoSpecifics; |
71 class SyncedNotificationSpecifics; | 71 class SyncedNotificationSpecifics; |
72 class TabNavigation; | 72 class TabNavigation; |
73 class Target; | 73 class Target; |
74 class ThemeSpecifics; | 74 class ThemeSpecifics; |
75 class TimeRangeDirective; | 75 class TimeRangeDirective; |
76 class TypedUrlSpecifics; | 76 class TypedUrlSpecifics; |
77 class WalletMaskedCreditCard; | 77 class WalletMaskedCreditCard; |
| 78 class WalletMetadataSpecifics; |
78 class WalletPostalAddress; | 79 class WalletPostalAddress; |
79 class WifiCredentialSpecifics; | 80 class WifiCredentialSpecifics; |
80 } // namespace sync_pb | 81 } // namespace sync_pb |
81 | 82 |
82 // Utility functions to convert sync protocol buffers to dictionaries. | 83 // Utility functions to convert sync protocol buffers to dictionaries. |
83 // Each protocol field is mapped to a key of the same name. Repeated | 84 // Each protocol field is mapped to a key of the same name. Repeated |
84 // fields are mapped to array values and sub-messages are mapped to | 85 // fields are mapped to array values and sub-messages are mapped to |
85 // sub-dictionary values. | 86 // sub-dictionary values. |
86 // | 87 // |
87 // TODO(akalin): Add has_* information. | 88 // TODO(akalin): Add has_* information. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 const sync_pb::ArticleSpecifics& article_specifics); | 168 const sync_pb::ArticleSpecifics& article_specifics); |
168 | 169 |
169 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> AutofillSpecificsToValue( | 170 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> AutofillSpecificsToValue( |
170 const sync_pb::AutofillSpecifics& autofill_specifics); | 171 const sync_pb::AutofillSpecifics& autofill_specifics); |
171 | 172 |
172 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> | 173 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> |
173 AutofillProfileSpecificsToValue( | 174 AutofillProfileSpecificsToValue( |
174 const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics); | 175 const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics); |
175 | 176 |
176 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> | 177 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> |
| 178 WalletMetadataSpecificsToValue( |
| 179 const sync_pb::WalletMetadataSpecifics& wallet_metadata_specifics); |
| 180 |
| 181 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> |
177 AutofillWalletSpecificsToValue( | 182 AutofillWalletSpecificsToValue( |
178 const sync_pb::AutofillWalletSpecifics& autofill_wallet_specifics); | 183 const sync_pb::AutofillWalletSpecifics& autofill_wallet_specifics); |
179 | 184 |
180 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> BookmarkSpecificsToValue( | 185 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> BookmarkSpecificsToValue( |
181 const sync_pb::BookmarkSpecifics& bookmark_specifics); | 186 const sync_pb::BookmarkSpecifics& bookmark_specifics); |
182 | 187 |
183 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> | 188 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> |
184 DeviceInfoSpecificsToValue( | 189 DeviceInfoSpecificsToValue( |
185 const sync_pb::DeviceInfoSpecifics& device_info_specifics); | 190 const sync_pb::DeviceInfoSpecifics& device_info_specifics); |
186 | 191 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 313 |
309 scoped_ptr<base::DictionaryValue> ClientConfigParamsToValue( | 314 scoped_ptr<base::DictionaryValue> ClientConfigParamsToValue( |
310 const sync_pb::ClientConfigParams& proto); | 315 const sync_pb::ClientConfigParams& proto); |
311 | 316 |
312 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> AttachmentIdProtoToValue( | 317 SYNC_EXPORT_PRIVATE scoped_ptr<base::DictionaryValue> AttachmentIdProtoToValue( |
313 const sync_pb::AttachmentIdProto& proto); | 318 const sync_pb::AttachmentIdProto& proto); |
314 | 319 |
315 } // namespace syncer | 320 } // namespace syncer |
316 | 321 |
317 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 322 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
OLD | NEW |