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

Unified Diff: components/sync/protocol/proto_value_conversions.h

Issue 2306763002: Add PrinterSpecifics to the sync protos. (Closed)
Patch Set: add comments to proto Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/protocol/proto_value_conversions.h
diff --git a/components/sync/protocol/proto_value_conversions.h b/components/sync/protocol/proto_value_conversions.h
index 1391a887d8e1ddc9b0cde6e02819e3e87a5d7ec6..989b44207211cc0a50de3bf217062ecbbc00ce92 100644
--- a/components/sync/protocol/proto_value_conversions.h
+++ b/components/sync/protocol/proto_value_conversions.h
@@ -59,6 +59,8 @@ class PasswordSpecifics;
class PasswordSpecificsData;
class PreferenceSpecifics;
class PriorityPreferenceSpecifics;
+class PrinterPPDData;
+class PrintersSpecifics;
class SearchEngineSpecifics;
class SessionHeader;
class SessionSpecifics;
@@ -156,6 +158,11 @@ std::unique_ptr<base::DictionaryValue> KeystoreEncryptionToValue(
std::unique_ptr<base::DictionaryValue> SessionSpecificsToValue(
const sync_pb::SessionSpecifics& session_specifics);
+// Sub-protocol of PrintersSpecifics.
+
+std::unique_ptr<base::DictionaryValue> PrinterPPDDataToValue(
+ const sync_pb::PrinterPPDData& proto);
+
// Main *SpecificsToValue functions.
std::unique_ptr<base::DictionaryValue> AppNotificationToValue(
@@ -239,6 +246,9 @@ std::unique_ptr<base::DictionaryValue> PasswordSpecificsToValue(
std::unique_ptr<base::DictionaryValue> PreferenceSpecificsToValue(
const sync_pb::PreferenceSpecifics& password_specifics);
+std::unique_ptr<base::DictionaryValue> PrintersSpecificsToValue(
+ const sync_pb::PrintersSpecifics& printers_specifics);
+
std::unique_ptr<base::DictionaryValue>
SyncedNotificationAppInfoSpecificsToValue(
const sync_pb::SyncedNotificationAppInfoSpecifics&

Powered by Google App Engine
This is Rietveld 408576698