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

Unified Diff: sync/internal_api/public/write_node.h

Issue 10825137: FYI: Control Data + Per-Device Metadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add PER_USER_METADATA, refactor some encryption code Created 8 years, 4 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: sync/internal_api/public/write_node.h
diff --git a/sync/internal_api/public/write_node.h b/sync/internal_api/public/write_node.h
index 1993cdbfb8d230644c626a05eb28541d30683a36..b56637e9e8612b4c1a44bc3008c4c9751b2c3311 100644
--- a/sync/internal_api/public/write_node.h
+++ b/sync/internal_api/public/write_node.h
@@ -15,14 +15,16 @@
namespace sync_pb {
class AppSpecifics;
-class AutofillSpecifics;
class AutofillProfileSpecifics;
+class AutofillSpecifics;
class BookmarkSpecifics;
class EntitySpecifics;
class ExtensionSpecifics;
-class SessionSpecifics;
class NigoriSpecifics;
class PasswordSpecificsData;
+class PerDeviceSpecifics;
+class PerUserSpecifics;
+class SessionSpecifics;
class ThemeSpecifics;
class TypedUrlSpecifics;
}
@@ -164,6 +166,14 @@ class WriteNode : public BaseNode {
// Should only be called if GetModelType() == SESSIONS.
void SetSessionSpecifics(const sync_pb::SessionSpecifics& specifics);
+ // Set the per-device metadata specifics.
+ // Should only be called if GetModelType() == PER_DEVICE_METADATA.
+ void SetPerDeviceSpecifics(const sync_pb::PerDeviceSpecifics& specifics);
+
+ // Set the per-account metadata specifics.
+ // Should only be called if GetModelType() == PER_USER_METADATA.
+ void SetPerUserSpecifics(const sync_pb::PerUserSpecifics& specifics);
+
// Implementation of BaseNode's abstract virtual accessors.
virtual const syncable::Entry* GetEntry() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698