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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class NigoriSpecifics; | 42 class NigoriSpecifics; |
43 class PasswordSpecifics; | 43 class PasswordSpecifics; |
44 class PasswordSpecificsData; | 44 class PasswordSpecificsData; |
45 class PreferenceSpecifics; | 45 class PreferenceSpecifics; |
46 class SearchEngineSpecifics; | 46 class SearchEngineSpecifics; |
47 class SessionHeader; | 47 class SessionHeader; |
48 class SessionSpecifics; | 48 class SessionSpecifics; |
49 class SessionTab; | 49 class SessionTab; |
50 class SessionWindow; | 50 class SessionWindow; |
51 class SyncCycleCompletedEventInfo; | 51 class SyncCycleCompletedEventInfo; |
| 52 class SyncedNotificationSpecifics; |
52 class TabNavigation; | 53 class TabNavigation; |
53 class ThemeSpecifics; | 54 class ThemeSpecifics; |
54 class TimeRangeDirective; | 55 class TimeRangeDirective; |
55 class TypedUrlSpecifics; | 56 class TypedUrlSpecifics; |
56 } // namespace sync_pb | 57 } // namespace sync_pb |
57 | 58 |
58 // Utility functions to convert sync protocol buffers to dictionaries. | 59 // Utility functions to convert sync protocol buffers to dictionaries. |
59 // Each protocol field is mapped to a key of the same name. Repeated | 60 // Each protocol field is mapped to a key of the same name. Repeated |
60 // fields are mapped to array values and sub-messages are mapped to | 61 // fields are mapped to array values and sub-messages are mapped to |
61 // sub-dictionary values. | 62 // sub-dictionary values. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 153 |
153 SYNC_EXPORT_PRIVATE base::DictionaryValue* NigoriSpecificsToValue( | 154 SYNC_EXPORT_PRIVATE base::DictionaryValue* NigoriSpecificsToValue( |
154 const sync_pb::NigoriSpecifics& nigori_specifics); | 155 const sync_pb::NigoriSpecifics& nigori_specifics); |
155 | 156 |
156 SYNC_EXPORT_PRIVATE base::DictionaryValue* PasswordSpecificsToValue( | 157 SYNC_EXPORT_PRIVATE base::DictionaryValue* PasswordSpecificsToValue( |
157 const sync_pb::PasswordSpecifics& password_specifics); | 158 const sync_pb::PasswordSpecifics& password_specifics); |
158 | 159 |
159 SYNC_EXPORT_PRIVATE base::DictionaryValue* PreferenceSpecificsToValue( | 160 SYNC_EXPORT_PRIVATE base::DictionaryValue* PreferenceSpecificsToValue( |
160 const sync_pb::PreferenceSpecifics& password_specifics); | 161 const sync_pb::PreferenceSpecifics& password_specifics); |
161 | 162 |
| 163 SYNC_EXPORT_PRIVATE base::DictionaryValue* SyncedNotificationSpecificsToValue( |
| 164 const sync_pb::SyncedNotificationSpecifics& |
| 165 synced_notification_specifics); |
| 166 |
162 SYNC_EXPORT_PRIVATE base::DictionaryValue* SearchEngineSpecificsToValue( | 167 SYNC_EXPORT_PRIVATE base::DictionaryValue* SearchEngineSpecificsToValue( |
163 const sync_pb::SearchEngineSpecifics& search_engine_specifics); | 168 const sync_pb::SearchEngineSpecifics& search_engine_specifics); |
164 | 169 |
165 SYNC_EXPORT_PRIVATE base::DictionaryValue* SessionSpecificsToValue( | 170 SYNC_EXPORT_PRIVATE base::DictionaryValue* SessionSpecificsToValue( |
166 const sync_pb::SessionSpecifics& session_specifics); | 171 const sync_pb::SessionSpecifics& session_specifics); |
167 | 172 |
168 SYNC_EXPORT_PRIVATE base::DictionaryValue* ThemeSpecificsToValue( | 173 SYNC_EXPORT_PRIVATE base::DictionaryValue* ThemeSpecificsToValue( |
169 const sync_pb::ThemeSpecifics& theme_specifics); | 174 const sync_pb::ThemeSpecifics& theme_specifics); |
170 | 175 |
171 SYNC_EXPORT_PRIVATE base::DictionaryValue* TypedUrlSpecificsToValue( | 176 SYNC_EXPORT_PRIVATE base::DictionaryValue* TypedUrlSpecificsToValue( |
(...skipping 20 matching lines...) Expand all Loading... |
192 | 197 |
193 base::DictionaryValue* DebugInfoToValue( | 198 base::DictionaryValue* DebugInfoToValue( |
194 const sync_pb::DebugInfo& proto); | 199 const sync_pb::DebugInfo& proto); |
195 | 200 |
196 base::DictionaryValue* SyncCycleCompletedEventInfoToValue( | 201 base::DictionaryValue* SyncCycleCompletedEventInfoToValue( |
197 const sync_pb::SyncCycleCompletedEventInfo& proto); | 202 const sync_pb::SyncCycleCompletedEventInfo& proto); |
198 | 203 |
199 } // namespace syncer | 204 } // namespace syncer |
200 | 205 |
201 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 206 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
OLD | NEW |