| // Copyright 2021 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. |
| |
| // If you change or add any fields in this file, update proto_visitors.h and |
| // potentially proto_enum_conversions.{h, cc}. |
| |
| 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/password_specifics.proto"; |
| |
| // Wrapper for a set of credentials that consists of (possibly) synced password |
| // data and local data that is exclusively read and modified by Chrome. |
| message PasswordWithLocalData { |
| // A potentially synced set of credentials. |
| optional PasswordSpecificsData password_specifics_data = 1; |
| |
| // Local data that is related to the `password_specifics_data`. Although it is |
| // stored close to the `password_specifics_data`, it always stays local to the |
| // device the password is stored on and is never synced. The provider does not |
| // read or modify it -- only Chrome does. |
| // This data will for example contain `FormData` or device-specific properties |
| // like `PasswordForm::skip_zero_click` that prevents a credential to be used |
| // for Credential Management requests on this device. |
| optional bytes local_chrome_data = 2; |
| } |