OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #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 AppNotification; | 16 class AppNotification; |
17 class AppNotificationSettings; | 17 class AppNotificationSettings; |
18 class AppSettingSpecifics; | 18 class AppSettingSpecifics; |
19 class AppSpecifics; | 19 class AppSpecifics; |
20 class AutofillProfileSpecifics; | 20 class AutofillProfileSpecifics; |
21 class AutofillSpecifics; | 21 class AutofillSpecifics; |
22 class BookmarkSpecifics; | 22 class BookmarkSpecifics; |
23 class ClientToServerMessage; | |
24 class ClientToServerResponse; | |
23 class DeviceInformation; | 25 class DeviceInformation; |
24 class EncryptedData; | 26 class EncryptedData; |
25 class EntitySpecifics; | 27 class EntitySpecifics; |
26 class ExtensionSettingSpecifics; | 28 class ExtensionSettingSpecifics; |
27 class ExtensionSpecifics; | 29 class ExtensionSpecifics; |
28 class NigoriSpecifics; | 30 class NigoriSpecifics; |
29 class PasswordSpecifics; | 31 class PasswordSpecifics; |
30 class PasswordSpecificsData; | 32 class PasswordSpecificsData; |
31 class PreferenceSpecifics; | 33 class PreferenceSpecifics; |
32 class SearchEngineSpecifics; | 34 class SearchEngineSpecifics; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 const sync_pb::ThemeSpecifics& theme_specifics); | 132 const sync_pb::ThemeSpecifics& theme_specifics); |
131 | 133 |
132 base::DictionaryValue* TypedUrlSpecificsToValue( | 134 base::DictionaryValue* TypedUrlSpecificsToValue( |
133 const sync_pb::TypedUrlSpecifics& typed_url_specifics); | 135 const sync_pb::TypedUrlSpecifics& typed_url_specifics); |
134 | 136 |
135 // Any present extensions are mapped to sub-dictionary values with the | 137 // Any present extensions are mapped to sub-dictionary values with the |
136 // key equal to the extension name. | 138 // key equal to the extension name. |
137 base::DictionaryValue* EntitySpecificsToValue( | 139 base::DictionaryValue* EntitySpecificsToValue( |
138 const sync_pb::EntitySpecifics& specifics); | 140 const sync_pb::EntitySpecifics& specifics); |
139 | 141 |
142 base::DictionaryValue* ClientToServerMessageToValue( | |
akalin
2012/03/16 21:28:27
add unit tests for these two functions. Should be
lipalani1
2012/03/17 01:29:50
Done.
| |
143 const sync_pb::ClientToServerMessage& proto, | |
144 bool include_specifics); | |
145 | |
146 base::DictionaryValue* ClientToServerResponseToValue( | |
147 const sync_pb::ClientToServerResponse& proto, | |
148 bool include_specifics); | |
149 | |
150 | |
140 } // namespace browser_sync | 151 } // namespace browser_sync |
141 | 152 |
142 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 153 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
OLD | NEW |