#include "components/history_embeddings/passages_util.h"
#include <string>
#include "components/history_embeddings/proto/history_embeddings.pb.h"
#include "components/os_crypt/async/common/encryptor.h"
#include "third_party/zlib/google/compression_utils.h"
namespace history_embeddings {
std::vector<uint8_t> PassagesProtoToBlob(
const proto::PassagesValue& passages_value,
const os_crypt_async::Encryptor& encryptor) { … }
std::optional<history_embeddings::proto::PassagesValue> PassagesBlobToProto(
base::span<const uint8_t> passages_blob,
const os_crypt_async::Encryptor& encryptor) { … }
}