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

Unified Diff: sync/internal_api/public/base_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/base_node.h
diff --git a/sync/internal_api/public/base_node.h b/sync/internal_api/public/base_node.h
index d4ba99df3836c1819b5c518944d48f6d37f45c32..fc03106073fb38b02a55d4589eddd6aea9bb75d1 100644
--- a/sync/internal_api/public/base_node.h
+++ b/sync/internal_api/public/base_node.h
@@ -23,15 +23,17 @@ class DictionaryValue;
namespace sync_pb {
class AppSpecifics;
-class AutofillSpecifics;
class AutofillProfileSpecifics;
+class AutofillSpecifics;
class BookmarkSpecifics;
class EntitySpecifics;
class ExtensionSpecifics;
-class SessionSpecifics;
class NigoriSpecifics;
-class PreferenceSpecifics;
class PasswordSpecificsData;
+class PerDeviceSpecifics;
+class PerUserSpecifics;
+class PreferenceSpecifics;
+class SessionSpecifics;
class ThemeSpecifics;
class TypedUrlSpecifics;
}
@@ -165,6 +167,14 @@ class BaseNode {
// data. Can only be called if GetModelType() == SESSIONS.
const sync_pb::SessionSpecifics& GetSessionSpecifics() const;
+ // Getter specific to the PER_DEVICE_METADATA datatype. Returns protobuf
+ // data. Can only be called if GetModelType() == PER_DEVICE_METADATA.
+ const sync_pb::PerDeviceSpecifics& GetPerDeviceSpecifics() const;
+
+ // Getter specific to the PER_USER_METADATA datatype. Returns protobuf data.
+ // Can only be called if GetModelType() == PER_USERMETADATA.
rlarocque 2012/08/11 01:31:52 FIXME: typo.
+ const sync_pb::PerUserSpecifics& GetPerUserSpecifics() const;
rlarocque 2012/08/11 01:31:52 I'm not sure if this function is necessary. Accor
+
const sync_pb::EntitySpecifics& GetEntitySpecifics() const;
// Returns the local external ID associated with the node.

Powered by Google App Engine
This is Rietveld 408576698