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