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

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

Issue 11441005: Create a fresh sync datatype for Synced Notifications (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix merge conflict in prolto_value_conversions.h Created 7 years, 11 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
« no previous file with comments | « sync/protocol/nigori_specifics.proto ('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 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
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
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
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_
OLDNEW
« no previous file with comments | « sync/protocol/nigori_specifics.proto ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698