Index: chrome/browser/sync/engine/syncapi.h |
diff --git a/chrome/browser/sync/engine/syncapi.h b/chrome/browser/sync/engine/syncapi.h |
index b363188426de444e23660426a50d06961f2c743d..c49e66921f8e6597b2e23b626bb1fa7d450a0058 100644 |
--- a/chrome/browser/sync/engine/syncapi.h |
+++ b/chrome/browser/sync/engine/syncapi.h |
@@ -80,6 +80,7 @@ class AutofillSpecifics; |
class BookmarkSpecifics; |
class EntitySpecifics; |
class ExtensionSpecifics; |
+class NigoriSpecifics; |
class PasswordSpecifics; |
class PreferenceSpecifics; |
class PasswordSpecifics; |
@@ -180,6 +181,10 @@ class BaseNode { |
// data. Can only be called if GetModelType() == AUTOFILL. |
const sync_pb::AutofillSpecifics& GetAutofillSpecifics() const; |
+ // Getter specific to the NIGORI datatype. Returns protobuf |
+ // data. Can only be called if GetModelType() == NIGORI. |
+ const sync_pb::NigoriSpecifics& GetNigoriSpecifics() const; |
+ |
// Getter specific to the PASSWORD datatype. Returns protobuf |
// data. Can only be called if GetModelType() == PASSWORD. |
bool GetPasswordSpecifics(sync_pb::PasswordSpecificsData*) const; |
@@ -303,6 +308,10 @@ class WriteNode : public BaseNode { |
// Should only be called if GetModelType() == AUTOFILL. |
void SetAutofillSpecifics(const sync_pb::AutofillSpecifics& specifics); |
+ // Set the nigori specifics. |
+ // Should only be called if GetModelType() == NIGORI. |
+ void SetNigoriSpecifics(const sync_pb::NigoriSpecifics& specifics); |
+ |
// Set the password specifics. |
// Should only be called if GetModelType() == PASSWORD. |
void SetPasswordSpecifics(const sync_pb::PasswordSpecificsData& specifics); |
@@ -346,6 +355,8 @@ class WriteNode : public BaseNode { |
const sync_pb::AutofillSpecifics& new_value); |
void PutBookmarkSpecificsAndMarkForSyncing( |
const sync_pb::BookmarkSpecifics& new_value); |
+ void PutNigoriSpecificsAndMarkForSyncing( |
+ const sync_pb::NigoriSpecifics& new_value); |
void PutPasswordSpecificsAndMarkForSyncing( |
const sync_pb::PasswordSpecifics& new_value); |
void PutPreferenceSpecificsAndMarkForSyncing( |