Index: chrome/browser/sync/engine/syncapi.h |
diff --git a/chrome/browser/sync/engine/syncapi.h b/chrome/browser/sync/engine/syncapi.h |
index 71ca1500c578c80830cf54ac2282fa5db4da9808..56d08346bbca3f0bc869f4f0f178bce7f901b7d9 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( |