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 AppSpecifics; | 16 class AppSpecifics; |
17 class AutofillCreditCardSpecifics; | |
18 class AutofillProfileSpecifics; | 17 class AutofillProfileSpecifics; |
19 class AutofillSpecifics; | 18 class AutofillSpecifics; |
20 class BookmarkSpecifics; | 19 class BookmarkSpecifics; |
21 class EncryptedData; | 20 class EncryptedData; |
22 class EntitySpecifics; | 21 class EntitySpecifics; |
23 class ExtensionSpecifics; | 22 class ExtensionSpecifics; |
24 class NigoriSpecifics; | 23 class NigoriSpecifics; |
25 class PasswordSpecifics; | 24 class PasswordSpecifics; |
26 class PasswordSpecificsData; | 25 class PasswordSpecificsData; |
27 class PreferenceSpecifics; | 26 class PreferenceSpecifics; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 const sync_pb::PasswordSpecificsData& password_specifics_data); | 72 const sync_pb::PasswordSpecificsData& password_specifics_data); |
74 | 73 |
75 // Main *SpecificsToValue functions. | 74 // Main *SpecificsToValue functions. |
76 | 75 |
77 base::DictionaryValue* AppSpecificsToValue( | 76 base::DictionaryValue* AppSpecificsToValue( |
78 const sync_pb::AppSpecifics& app_specifics); | 77 const sync_pb::AppSpecifics& app_specifics); |
79 | 78 |
80 base::DictionaryValue* AutofillSpecificsToValue( | 79 base::DictionaryValue* AutofillSpecificsToValue( |
81 const sync_pb::AutofillSpecifics& autofill_specifics); | 80 const sync_pb::AutofillSpecifics& autofill_specifics); |
82 | 81 |
83 base::DictionaryValue* AutofillCreditCardSpecificsToValue( | |
84 const sync_pb::AutofillCreditCardSpecifics& | |
85 autofill_credit_card_specifics); | |
86 | |
87 base::DictionaryValue* AutofillProfileSpecificsToValue( | 82 base::DictionaryValue* AutofillProfileSpecificsToValue( |
88 const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics); | 83 const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics); |
89 | 84 |
90 base::DictionaryValue* BookmarkSpecificsToValue( | 85 base::DictionaryValue* BookmarkSpecificsToValue( |
91 const sync_pb::BookmarkSpecifics& bookmark_specifics); | 86 const sync_pb::BookmarkSpecifics& bookmark_specifics); |
92 | 87 |
93 base::DictionaryValue* ExtensionSpecificsToValue( | 88 base::DictionaryValue* ExtensionSpecificsToValue( |
94 const sync_pb::ExtensionSpecifics& extension_specifics); | 89 const sync_pb::ExtensionSpecifics& extension_specifics); |
95 | 90 |
96 base::DictionaryValue* NigoriSpecificsToValue( | 91 base::DictionaryValue* NigoriSpecificsToValue( |
(...skipping 18 matching lines...) Expand all Loading... |
115 const sync_pb::TypedUrlSpecifics& typed_url_specifics); | 110 const sync_pb::TypedUrlSpecifics& typed_url_specifics); |
116 | 111 |
117 // Any present extensions are mapped to sub-dictionary values with the | 112 // Any present extensions are mapped to sub-dictionary values with the |
118 // key equal to the extension name. | 113 // key equal to the extension name. |
119 base::DictionaryValue* EntitySpecificsToValue( | 114 base::DictionaryValue* EntitySpecificsToValue( |
120 const sync_pb::EntitySpecifics& entity_specifics); | 115 const sync_pb::EntitySpecifics& entity_specifics); |
121 | 116 |
122 } // namespace browser_sync | 117 } // namespace browser_sync |
123 | 118 |
124 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 119 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
OLD | NEW |