blob: d900c87fda29673db00bd1f78bb177fd96211c74 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto2";
option java_multiple_files = true;
option java_package = "org.chromium.components.sync.protocol";
option optimize_for = LITE_RUNTIME;
package sync_pb;
import "components/sync/protocol/model_type_state.proto";
import "components/sync/protocol/entity_metadata.proto";
// Corresponds to a single bookmark id/metadata pair.
message BookmarkMetadata {
// Bookmark local id.
optional int64 id = 1;
// Bookmarks sync metadata.
optional EntityMetadata metadata = 2;
}
// Sync proto to carry the sync metadata for the bookmarks model. It is used for
// persisting and loading sync metadata from disk.
message BookmarkModelMetadata {
// Bookmark global metadata.
optional ModelTypeState model_type_state = 1;
// A set of all bookmarks metadata.
repeated BookmarkMetadata bookmarks_metadata = 2;
// Indicates whether the reupload of bookmarks has been triggered such that
// they include the full title, which means that their sequence number has
// been increased (independently of whether the commit has succeeded or even
// started).
// TODO(crbug.com/1066962): remove this code when most of bookmarks are
// reuploaded.
optional bool bookmarks_full_title_reuploaded = 3;
}