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

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

Issue 2306763002: Add PrinterSpecifics to the sync protos. (Closed)
Patch Set: PrintersSpecifics -> PrinterSpecifics 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..17907b48b6e3115fbabe803ec70c6088b088d15b 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 PrinterSpecifics;
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 PrinterSpecifics.
+
+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> PrinterSpecificsToValue(
+ const sync_pb::PrinterSpecifics& printer_specifics);
+
std::unique_ptr<base::DictionaryValue>
SyncedNotificationAppInfoSpecificsToValue(
const sync_pb::SyncedNotificationAppInfoSpecifics&
« no previous file with comments | « components/sync/protocol/printer_specifics.proto ('k') | components/sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698