Home | History | Annotate | Download | only in engine

Lines Matching defs:id

48 using syncable::ID;
53 using syncable::Id;
76 syncable::Id FindLocalIdToUpdate(
85 const syncable::Id& update_id = SyncableIdFromProto(update.id_string());
90 // 1) Client has entry for tag already, ID is server style, matches
91 // 2) Client has entry for tag already, ID is server, doesn't match.
92 // 3) Client has entry for tag already, ID is local, (never matches)
96 // work just fine. Update will end up in the proper entry, via ID lookup.
99 // When this happens, we pick the lexically-least ID and ignore all other
101 // Case 3 - We need to replace the local ID with the server ID so that
126 // we'll change the ID of the local entry to update_id
131 // We should change the ID of the local entry to the server entry.
132 // This will result in an server ID with base version == 0, but that's
133 // a legal state for an item with a client tag. By changing the ID,
155 // id updated correctly. The server sends down a client ID
156 // and a local (negative) id. If we have a entry by that
157 // description, we should update the ID and version to the
160 syncable::Id client_item_id = syncable::Id::CreateFromClientString(
179 DVLOG(1) << "Reuniting lost commit response IDs. server id: "
180 << update_id << " local id: " << local_entry.GetId()
186 // Fallback: target an entry having the server ID, creating one if needed.
197 syncable::Id id = entry->GetId();
227 syncable::Id new_parent = entry->GetServerParentId();
240 if (!entry->GetIsDel() && !IsLegalNewParent(trans, id, new_parent)) {
241 DVLOG(1) << "Not updating item " << id
248 trans->directory()->GetChildHandlesById(trans, id, &handles);
258 DVLOG(1) << "Skipping update, returning conflict for: " << id
382 << "ID Changing not supported here";
423 // Creates a new Entry iff no Entry exists with the given id.
425 const syncable::Id& id) {
426 syncable::Entry entry(trans, GET_BY_ID, id);
431 id);
469 syncable::Id id = entry->GetId();
470 if (id == entry->GetParentId()) {
471 CHECK(id.IsRoot()) << "Non-root item is self parenting." << *entry;
490 std::set<syncable::Id>* deleted_folders) {
509 syncable::Id id = entry.GetParentId();
510 while (id != trans->root_id()) {
511 if (deleted_folders->find(id) != deleted_folders->end()) {
516 Entry parent(trans, GET_BY_ID, id);
519 id = parent.GetParentId();
551 const syncable::Id& update_id = SyncableIdFromProto(update.id_string());