OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 7 #ifndef CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
8 #define CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 8 #define CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 namespace base { | 11 namespace base { |
12 class DictionaryValue; | 12 class DictionaryValue; |
13 } | 13 } |
14 | 14 |
15 namespace sync_pb { | 15 namespace sync_pb { |
16 class AppNotificationSpecifics; | 16 class AppNotificationSpecifics; |
| 17 class AppSettingSpecifics; |
17 class AppSpecifics; | 18 class AppSpecifics; |
18 class AutofillProfileSpecifics; | 19 class AutofillProfileSpecifics; |
19 class AutofillSpecifics; | 20 class AutofillSpecifics; |
20 class BookmarkSpecifics; | 21 class BookmarkSpecifics; |
21 class EncryptedData; | 22 class EncryptedData; |
22 class EntitySpecifics; | 23 class EntitySpecifics; |
23 class ExtensionSettingSpecifics; | 24 class ExtensionSettingSpecifics; |
24 class ExtensionSpecifics; | 25 class ExtensionSpecifics; |
25 class NigoriSpecifics; | 26 class NigoriSpecifics; |
26 class PasswordSpecifics; | 27 class PasswordSpecifics; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Sub-protocol of PasswordSpecifics. | 72 // Sub-protocol of PasswordSpecifics. |
72 | 73 |
73 base::DictionaryValue* PasswordSpecificsDataToValue( | 74 base::DictionaryValue* PasswordSpecificsDataToValue( |
74 const sync_pb::PasswordSpecificsData& password_specifics_data); | 75 const sync_pb::PasswordSpecificsData& password_specifics_data); |
75 | 76 |
76 // Main *SpecificsToValue functions. | 77 // Main *SpecificsToValue functions. |
77 | 78 |
78 base::DictionaryValue* AppNotificationSpecificsToValue( | 79 base::DictionaryValue* AppNotificationSpecificsToValue( |
79 const sync_pb::AppNotificationSpecifics& app_notification_specifics); | 80 const sync_pb::AppNotificationSpecifics& app_notification_specifics); |
80 | 81 |
| 82 base::DictionaryValue* AppSettingSpecificsToValue( |
| 83 const sync_pb::AppSettingSpecifics& app_setting_specifics); |
| 84 |
81 base::DictionaryValue* AppSpecificsToValue( | 85 base::DictionaryValue* AppSpecificsToValue( |
82 const sync_pb::AppSpecifics& app_specifics); | 86 const sync_pb::AppSpecifics& app_specifics); |
83 | 87 |
84 base::DictionaryValue* AutofillSpecificsToValue( | 88 base::DictionaryValue* AutofillSpecificsToValue( |
85 const sync_pb::AutofillSpecifics& autofill_specifics); | 89 const sync_pb::AutofillSpecifics& autofill_specifics); |
86 | 90 |
87 base::DictionaryValue* AutofillProfileSpecificsToValue( | 91 base::DictionaryValue* AutofillProfileSpecificsToValue( |
88 const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics); | 92 const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics); |
89 | 93 |
90 base::DictionaryValue* BookmarkSpecificsToValue( | 94 base::DictionaryValue* BookmarkSpecificsToValue( |
(...skipping 27 matching lines...) Expand all Loading... |
118 const sync_pb::TypedUrlSpecifics& typed_url_specifics); | 122 const sync_pb::TypedUrlSpecifics& typed_url_specifics); |
119 | 123 |
120 // Any present extensions are mapped to sub-dictionary values with the | 124 // Any present extensions are mapped to sub-dictionary values with the |
121 // key equal to the extension name. | 125 // key equal to the extension name. |
122 base::DictionaryValue* EntitySpecificsToValue( | 126 base::DictionaryValue* EntitySpecificsToValue( |
123 const sync_pb::EntitySpecifics& entity_specifics); | 127 const sync_pb::EntitySpecifics& entity_specifics); |
124 | 128 |
125 } // namespace browser_sync | 129 } // namespace browser_sync |
126 | 130 |
127 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 131 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
OLD | NEW |