Chromium Code Reviews| Index: sync/syncable/directory.h |
| diff --git a/sync/syncable/directory.h b/sync/syncable/directory.h |
| index b34882feb40ee319598b8832109ccc05e4704478..2e8ad7fbec22dd2291593c96992349c5f2788b7b 100644 |
| --- a/sync/syncable/directory.h |
| +++ b/sync/syncable/directory.h |
| @@ -170,6 +170,10 @@ class Directory { |
| int64 next_id; |
| // The persisted notification state. |
| std::string notification_state; |
| + // The serialized bag of chips we were given by the server. Contents are |
| + // opaque to the client. This is the serialization of a message of type |
| + // ChipBag defined in sync.proto. |
|
tim (not reviewing)
2012/09/11 17:57:20
This is free of NULL characters?
qsr (NOT THE RIGHT qsr)
2012/09/11 18:48:49
Added comment.
|
| + std::string bag_of_chips; |
| }; |
| // What the Directory needs on initialization to create itself and its Kernel. |
| @@ -260,6 +264,11 @@ class Directory { |
| std::string store_birthday() const; |
| void set_store_birthday(const std::string& store_birthday); |
| + // (Account) Bag of chip is an opaque state used by the server to track the |
| + // client. |
| + std::string bag_of_chips() const; |
| + void set_bag_of_chips(const std::string& bag_of_chips); |
| + |
| std::string GetNotificationState() const; |
| void SetNotificationState(const std::string& notification_state); |