| 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 11 matching lines...) Expand all Loading... |
| 22 class ClientToServerMessage; | 22 class ClientToServerMessage; |
| 23 class ClientToServerResponse; | 23 class ClientToServerResponse; |
| 24 class DeviceInformation; | 24 class DeviceInformation; |
| 25 class EncryptedData; | 25 class EncryptedData; |
| 26 class EntitySpecifics; | 26 class EntitySpecifics; |
| 27 class ExtensionSettingSpecifics; | 27 class ExtensionSettingSpecifics; |
| 28 class ExtensionSpecifics; | 28 class ExtensionSpecifics; |
| 29 class NigoriSpecifics; | 29 class NigoriSpecifics; |
| 30 class PasswordSpecifics; | 30 class PasswordSpecifics; |
| 31 class PasswordSpecificsData; | 31 class PasswordSpecificsData; |
| 32 class PerDeviceSpecifics; |
| 33 class PerUserSpecifics; |
| 32 class PreferenceSpecifics; | 34 class PreferenceSpecifics; |
| 33 class SearchEngineSpecifics; | 35 class SearchEngineSpecifics; |
| 34 class SessionHeader; | 36 class SessionHeader; |
| 35 class SessionSpecifics; | 37 class SessionSpecifics; |
| 36 class SessionTab; | 38 class SessionTab; |
| 37 class SessionWindow; | 39 class SessionWindow; |
| 38 class TabNavigation; | 40 class TabNavigation; |
| 39 class ThemeSpecifics; | 41 class ThemeSpecifics; |
| 40 class TypedUrlSpecifics; | 42 class TypedUrlSpecifics; |
| 41 } // namespace sync_pb | 43 } // namespace sync_pb |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 const sync_pb::SessionWindow& session_window); | 76 const sync_pb::SessionWindow& session_window); |
| 75 | 77 |
| 76 base::DictionaryValue* TabNavigationToValue( | 78 base::DictionaryValue* TabNavigationToValue( |
| 77 const sync_pb::TabNavigation& tab_navigation); | 79 const sync_pb::TabNavigation& tab_navigation); |
| 78 | 80 |
| 79 // Sub-protocol of PasswordSpecifics. | 81 // Sub-protocol of PasswordSpecifics. |
| 80 | 82 |
| 81 base::DictionaryValue* PasswordSpecificsDataToValue( | 83 base::DictionaryValue* PasswordSpecificsDataToValue( |
| 82 const sync_pb::PasswordSpecificsData& password_specifics_data); | 84 const sync_pb::PasswordSpecificsData& password_specifics_data); |
| 83 | 85 |
| 84 // Sub-protocol of NigoriSpecifics. | 86 // Sub-protocol of PerDeviceSpecifics. |
| 85 | 87 |
| 86 base::DictionaryValue* DeviceInformationToValue( | 88 base::DictionaryValue* DeviceInformationToValue( |
| 87 const sync_pb::DeviceInformation& device_information); | 89 const sync_pb::DeviceInformation& device_information); |
| 88 | 90 |
| 89 // Main *SpecificsToValue functions. | 91 // Main *SpecificsToValue functions. |
| 90 | 92 |
| 91 base::DictionaryValue* AppNotificationToValue( | 93 base::DictionaryValue* AppNotificationToValue( |
| 92 const sync_pb::AppNotification& app_notification_specifics); | 94 const sync_pb::AppNotification& app_notification_specifics); |
| 93 | 95 |
| 94 base::DictionaryValue* AppSettingSpecificsToValue( | 96 base::DictionaryValue* AppSettingSpecificsToValue( |
| (...skipping 16 matching lines...) Expand all Loading... |
| 111 | 113 |
| 112 base::DictionaryValue* ExtensionSpecificsToValue( | 114 base::DictionaryValue* ExtensionSpecificsToValue( |
| 113 const sync_pb::ExtensionSpecifics& extension_specifics); | 115 const sync_pb::ExtensionSpecifics& extension_specifics); |
| 114 | 116 |
| 115 base::DictionaryValue* NigoriSpecificsToValue( | 117 base::DictionaryValue* NigoriSpecificsToValue( |
| 116 const sync_pb::NigoriSpecifics& nigori_specifics); | 118 const sync_pb::NigoriSpecifics& nigori_specifics); |
| 117 | 119 |
| 118 base::DictionaryValue* PasswordSpecificsToValue( | 120 base::DictionaryValue* PasswordSpecificsToValue( |
| 119 const sync_pb::PasswordSpecifics& password_specifics); | 121 const sync_pb::PasswordSpecifics& password_specifics); |
| 120 | 122 |
| 123 base::DictionaryValue* PerDeviceSpecificsToValue( |
| 124 const sync_pb::PerDeviceSpecifics& per_device_specifics); |
| 125 |
| 126 base::DictionaryValue* PerUserSpecificsToValue( |
| 127 const sync_pb::PerUserSpecifics& per_user_specifics); |
| 128 |
| 121 base::DictionaryValue* PreferenceSpecificsToValue( | 129 base::DictionaryValue* PreferenceSpecificsToValue( |
| 122 const sync_pb::PreferenceSpecifics& password_specifics); | 130 const sync_pb::PreferenceSpecifics& password_specifics); |
| 123 | 131 |
| 124 base::DictionaryValue* SearchEngineSpecificsToValue( | 132 base::DictionaryValue* SearchEngineSpecificsToValue( |
| 125 const sync_pb::SearchEngineSpecifics& search_engine_specifics); | 133 const sync_pb::SearchEngineSpecifics& search_engine_specifics); |
| 126 | 134 |
| 127 base::DictionaryValue* SessionSpecificsToValue( | 135 base::DictionaryValue* SessionSpecificsToValue( |
| 128 const sync_pb::SessionSpecifics& session_specifics); | 136 const sync_pb::SessionSpecifics& session_specifics); |
| 129 | 137 |
| 130 base::DictionaryValue* ThemeSpecificsToValue( | 138 base::DictionaryValue* ThemeSpecificsToValue( |
| (...skipping 12 matching lines...) Expand all Loading... |
| 143 bool include_specifics); | 151 bool include_specifics); |
| 144 | 152 |
| 145 base::DictionaryValue* ClientToServerResponseToValue( | 153 base::DictionaryValue* ClientToServerResponseToValue( |
| 146 const sync_pb::ClientToServerResponse& proto, | 154 const sync_pb::ClientToServerResponse& proto, |
| 147 bool include_specifics); | 155 bool include_specifics); |
| 148 | 156 |
| 149 | 157 |
| 150 } // namespace syncer | 158 } // namespace syncer |
| 151 | 159 |
| 152 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ | 160 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ |
| OLD | NEW |