Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: sync/protocol/proto_value_conversions.h

Issue 10985008: sync: Add DeviceInfo protobuf and supporting code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another missing include Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/protocol/proto_enum_conversions.cc ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 {
11 class DictionaryValue; 11 class DictionaryValue;
12 } 12 }
13 13
14 namespace sync_pb { 14 namespace sync_pb {
15 class AppNotification; 15 class AppNotification;
16 class AppNotificationSettings; 16 class AppNotificationSettings;
17 class AppSettingSpecifics; 17 class AppSettingSpecifics;
18 class AppSpecifics; 18 class AppSpecifics;
19 class AutofillProfileSpecifics; 19 class AutofillProfileSpecifics;
20 class AutofillSpecifics; 20 class AutofillSpecifics;
21 class BookmarkSpecifics; 21 class BookmarkSpecifics;
22 class ClientToServerMessage; 22 class ClientToServerMessage;
23 class ClientToServerResponse; 23 class ClientToServerResponse;
24 class DeviceInfoSpecifics;
24 class DeviceInformation; 25 class DeviceInformation;
25 class EncryptedData; 26 class EncryptedData;
26 class EntitySpecifics; 27 class EntitySpecifics;
27 class ExtensionSettingSpecifics; 28 class ExtensionSettingSpecifics;
28 class ExtensionSpecifics; 29 class ExtensionSpecifics;
29 class NigoriSpecifics; 30 class NigoriSpecifics;
30 class PasswordSpecifics; 31 class PasswordSpecifics;
31 class PasswordSpecificsData; 32 class PasswordSpecificsData;
32 class PreferenceSpecifics; 33 class PreferenceSpecifics;
33 class SearchEngineSpecifics; 34 class SearchEngineSpecifics;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const sync_pb::SessionWindow& session_window); 75 const sync_pb::SessionWindow& session_window);
75 76
76 base::DictionaryValue* TabNavigationToValue( 77 base::DictionaryValue* TabNavigationToValue(
77 const sync_pb::TabNavigation& tab_navigation); 78 const sync_pb::TabNavigation& tab_navigation);
78 79
79 // Sub-protocol of PasswordSpecifics. 80 // Sub-protocol of PasswordSpecifics.
80 81
81 base::DictionaryValue* PasswordSpecificsDataToValue( 82 base::DictionaryValue* PasswordSpecificsDataToValue(
82 const sync_pb::PasswordSpecificsData& password_specifics_data); 83 const sync_pb::PasswordSpecificsData& password_specifics_data);
83 84
84 // Sub-protocol of NigoriSpecifics.
85
86 base::DictionaryValue* DeviceInformationToValue(
87 const sync_pb::DeviceInformation& device_information);
88
89 // Main *SpecificsToValue functions. 85 // Main *SpecificsToValue functions.
90 86
91 base::DictionaryValue* AppNotificationToValue( 87 base::DictionaryValue* AppNotificationToValue(
92 const sync_pb::AppNotification& app_notification_specifics); 88 const sync_pb::AppNotification& app_notification_specifics);
93 89
94 base::DictionaryValue* AppSettingSpecificsToValue( 90 base::DictionaryValue* AppSettingSpecificsToValue(
95 const sync_pb::AppSettingSpecifics& app_setting_specifics); 91 const sync_pb::AppSettingSpecifics& app_setting_specifics);
96 92
97 base::DictionaryValue* AppSpecificsToValue( 93 base::DictionaryValue* AppSpecificsToValue(
98 const sync_pb::AppSpecifics& app_specifics); 94 const sync_pb::AppSpecifics& app_specifics);
(...skipping 12 matching lines...) Expand all
111 107
112 base::DictionaryValue* ExtensionSpecificsToValue( 108 base::DictionaryValue* ExtensionSpecificsToValue(
113 const sync_pb::ExtensionSpecifics& extension_specifics); 109 const sync_pb::ExtensionSpecifics& extension_specifics);
114 110
115 base::DictionaryValue* NigoriSpecificsToValue( 111 base::DictionaryValue* NigoriSpecificsToValue(
116 const sync_pb::NigoriSpecifics& nigori_specifics); 112 const sync_pb::NigoriSpecifics& nigori_specifics);
117 113
118 base::DictionaryValue* PasswordSpecificsToValue( 114 base::DictionaryValue* PasswordSpecificsToValue(
119 const sync_pb::PasswordSpecifics& password_specifics); 115 const sync_pb::PasswordSpecifics& password_specifics);
120 116
117 base::DictionaryValue* DeviceInfoSpecificsToValue(
118 const sync_pb::DeviceInfoSpecifics& device_info_specifics);
119
121 base::DictionaryValue* PreferenceSpecificsToValue( 120 base::DictionaryValue* PreferenceSpecificsToValue(
122 const sync_pb::PreferenceSpecifics& password_specifics); 121 const sync_pb::PreferenceSpecifics& password_specifics);
123 122
124 base::DictionaryValue* SearchEngineSpecificsToValue( 123 base::DictionaryValue* SearchEngineSpecificsToValue(
125 const sync_pb::SearchEngineSpecifics& search_engine_specifics); 124 const sync_pb::SearchEngineSpecifics& search_engine_specifics);
126 125
127 base::DictionaryValue* SessionSpecificsToValue( 126 base::DictionaryValue* SessionSpecificsToValue(
128 const sync_pb::SessionSpecifics& session_specifics); 127 const sync_pb::SessionSpecifics& session_specifics);
129 128
130 base::DictionaryValue* ThemeSpecificsToValue( 129 base::DictionaryValue* ThemeSpecificsToValue(
(...skipping 12 matching lines...) Expand all
143 bool include_specifics); 142 bool include_specifics);
144 143
145 base::DictionaryValue* ClientToServerResponseToValue( 144 base::DictionaryValue* ClientToServerResponseToValue(
146 const sync_pb::ClientToServerResponse& proto, 145 const sync_pb::ClientToServerResponse& proto,
147 bool include_specifics); 146 bool include_specifics);
148 147
149 148
150 } // namespace syncer 149 } // namespace syncer
151 150
152 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ 151 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « sync/protocol/proto_enum_conversions.cc ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698