blob: baa52981980755af8979f645edfdeb237cea02e3 [file]
// Copyright 2026 The Chromium Authors
// 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/encryption.proto";
// Plaintext content serialized and encrypted into
// EncryptedTabContextItemSpecifics.encrypted_content.
message TabContextItemContent {
oneof content {
// Uncompressed payload bytes.
bytes raw_data = 1;
// Gzip-compressed (RFC 1952) payload bytes.
bytes gzip_compressed_data = 2;
}
}
// Specifics for ENCRYPTED_TAB_CONTEXT_ITEM.
message EncryptedTabContextItemSpecifics {
// Lowercase string representation of a base::Uuid.
optional string container_id = 1;
// Unique identifier for the item within the container (arbitrary string).
optional string item_id = 2;
// Encrypted serialized TabContextItemContent proto, encrypted with the
// container's encryption key.
optional EncryptedData encrypted_content = 3;
}