OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ | 5 #ifndef SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ |
6 #define SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ | 6 #define SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ |
7 | 7 |
8 #include "sync/base/sync_export.h" | 8 #include "sync/base/sync_export.h" |
9 #include "sync/internal_api/public/base/model_type.h" | 9 #include "sync/internal_api/public/base/model_type.h" |
10 #include "sync/syncable/entry.h" | 10 #include "sync/syncable/entry.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 bool PutIsUnappliedUpdate(bool value); | 64 bool PutIsUnappliedUpdate(bool value); |
65 void PutServerIsDir(bool value); | 65 void PutServerIsDir(bool value); |
66 void PutServerIsDel(bool value); | 66 void PutServerIsDel(bool value); |
67 void PutServerNonUniqueName(const std::string& value); | 67 void PutServerNonUniqueName(const std::string& value); |
68 bool PutUniqueServerTag(const std::string& value); | 68 bool PutUniqueServerTag(const std::string& value); |
69 bool PutUniqueClientTag(const std::string& value); | 69 bool PutUniqueClientTag(const std::string& value); |
70 void PutUniqueBookmarkTag(const std::string& tag); | 70 void PutUniqueBookmarkTag(const std::string& tag); |
71 void PutServerSpecifics(const sync_pb::EntitySpecifics& value); | 71 void PutServerSpecifics(const sync_pb::EntitySpecifics& value); |
72 void PutBaseServerSpecifics(const sync_pb::EntitySpecifics& value); | 72 void PutBaseServerSpecifics(const sync_pb::EntitySpecifics& value); |
73 void PutServerUniquePosition(const UniquePosition& value); | 73 void PutServerUniquePosition(const UniquePosition& value); |
| 74 void PutServerAttachmentMetadata(const sync_pb::AttachmentMetadata& value); |
74 void PutSyncing(bool value); | 75 void PutSyncing(bool value); |
75 | 76 |
76 // Do a simple property-only update of the PARENT_ID field. Use with caution. | 77 // Do a simple property-only update of the PARENT_ID field. Use with caution. |
77 // | 78 // |
78 // The normal Put(IS_PARENT) call will move the item to the front of the | 79 // The normal Put(IS_PARENT) call will move the item to the front of the |
79 // sibling order to maintain the linked list invariants when the parent | 80 // sibling order to maintain the linked list invariants when the parent |
80 // changes. That's usually what you want to do, but it's inappropriate | 81 // changes. That's usually what you want to do, but it's inappropriate |
81 // when the caller is trying to change the parent ID of a the whole set | 82 // when the caller is trying to change the parent ID of a the whole set |
82 // of children (e.g. because the ID changed during a commit). For those | 83 // of children (e.g. because the ID changed during a commit). For those |
83 // cases, there's this function. It will corrupt the sibling ordering | 84 // cases, there's this function. It will corrupt the sibling ordering |
(...skipping 23 matching lines...) Expand all Loading... |
107 // Scope: Set on construction, never changed after that. | 108 // Scope: Set on construction, never changed after that. |
108 BaseWriteTransaction* const base_write_transaction_; | 109 BaseWriteTransaction* const base_write_transaction_; |
109 | 110 |
110 DISALLOW_COPY_AND_ASSIGN(ModelNeutralMutableEntry); | 111 DISALLOW_COPY_AND_ASSIGN(ModelNeutralMutableEntry); |
111 }; | 112 }; |
112 | 113 |
113 } // namespace syncable | 114 } // namespace syncable |
114 } // namespace syncer | 115 } // namespace syncer |
115 | 116 |
116 #endif // SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ | 117 #endif // SYNC_SYNCABLE_MODEL_NEUTRAL_MUTABLE_ENTRY_H_ |
OLD | NEW |