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

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

Issue 2092893002: arc: Create sync protos for Arc package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits addressed. Created 4 years, 5 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 <memory> 10 #include <memory>
11 11
12 #include "sync/base/sync_export.h" 12 #include "sync/base/sync_export.h"
13 13
14 namespace base { 14 namespace base {
15 class DictionaryValue; 15 class DictionaryValue;
16 } 16 }
17 17
18 namespace sync_pb { 18 namespace sync_pb {
19 class AppListSpecifics; 19 class AppListSpecifics;
20 class AppNotification; 20 class AppNotification;
21 class AppNotificationSettings; 21 class AppNotificationSettings;
22 class AppSettingSpecifics; 22 class AppSettingSpecifics;
23 class AppSpecifics; 23 class AppSpecifics;
24 class ArcPackageSpecifics;
24 class ArticleSpecifics; 25 class ArticleSpecifics;
25 class AttachmentIdProto; 26 class AttachmentIdProto;
26 class AutofillProfileSpecifics; 27 class AutofillProfileSpecifics;
27 class AutofillSpecifics; 28 class AutofillSpecifics;
28 class AutofillWalletSpecifics; 29 class AutofillWalletSpecifics;
29 class BookmarkSpecifics; 30 class BookmarkSpecifics;
30 class ClientConfigParams; 31 class ClientConfigParams;
31 class ClientToServerMessage; 32 class ClientToServerMessage;
32 class ClientToServerResponse; 33 class ClientToServerResponse;
33 class CollapsedInfo; 34 class CollapsedInfo;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AppListSpecificsToValue( 104 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AppListSpecificsToValue(
104 const sync_pb::AppListSpecifics& proto); 105 const sync_pb::AppListSpecifics& proto);
105 106
106 // Sub-protocols of AppSpecifics. 107 // Sub-protocols of AppSpecifics.
107 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AppSettingsToValue( 108 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AppSettingsToValue(
108 const sync_pb::AppNotificationSettings& app_notification_settings); 109 const sync_pb::AppNotificationSettings& app_notification_settings);
109 110
110 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> LinkedAppIconInfoToValue( 111 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> LinkedAppIconInfoToValue(
111 const sync_pb::LinkedAppIconInfo& linked_app_icon_info); 112 const sync_pb::LinkedAppIconInfo& linked_app_icon_info);
112 113
114 // Sub-protocol of ArcPackageSpecifics.
115 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> ArcPackageSpecificsToValue(
116 const sync_pb::ArcPackageSpecifics& proto);
117
113 // Sub-protocols of SessionSpecifics. 118 // Sub-protocols of SessionSpecifics.
114 119
115 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SessionHeaderToValue( 120 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SessionHeaderToValue(
116 const sync_pb::SessionHeader& session_header); 121 const sync_pb::SessionHeader& session_header);
117 122
118 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SessionTabToValue( 123 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SessionTabToValue(
119 const sync_pb::SessionTab& session_tab); 124 const sync_pb::SessionTab& session_tab);
120 125
121 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SessionWindowToValue( 126 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> SessionWindowToValue(
122 const sync_pb::SessionWindow& session_window); 127 const sync_pb::SessionWindow& session_window);
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 311
307 std::unique_ptr<base::DictionaryValue> ClientConfigParamsToValue( 312 std::unique_ptr<base::DictionaryValue> ClientConfigParamsToValue(
308 const sync_pb::ClientConfigParams& proto); 313 const sync_pb::ClientConfigParams& proto);
309 314
310 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AttachmentIdProtoToValue( 315 SYNC_EXPORT std::unique_ptr<base::DictionaryValue> AttachmentIdProtoToValue(
311 const sync_pb::AttachmentIdProto& proto); 316 const sync_pb::AttachmentIdProto& proto);
312 317
313 } // namespace syncer 318 } // namespace syncer
314 319
315 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ 320 #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