chromium/chromeos/crosapi/mojom/authentication.mojom

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

module crosapi.mojom;

import "mojo/public/mojom/base/time.mojom";

// Deprecated.
[Stable, RenamedFrom="crosapi.mojom.QuickUnlockPrivateTokenInfo"]
struct QuickUnlockPrivateTokenInfoDeprecated {
  // The authentication token that can be passed to quickUnlockPrivate::SetModes
  // calls.
  string REMOVED_0@0;

  // The number of seconds until the token expires. UI that uses this should
  // refresh token before it expires.
  int32 REMOVED_1@1;
};

// Deprecated.
[Stable, RenamedFrom="crosapi.mojom.CreateQuickUnlockPrivateTokenInfoResult"]
union CreateQuickUnlockPrivateTokenInfoResultDeprecated {
  // Implies failure.
  string REMOVED_0@0;

  // Implies success.
  QuickUnlockPrivateTokenInfoDeprecated REMOVED_1@1;
};

// Deprecated.
[Stable, Uuid="7548cbb8-944f-4db0-8f5d-a37512733c78",
  RenamedFrom="crosapi.mojom.Authentication"]
interface AuthenticationDeprecated {
  // Deprecated.
  REMOVED_0@0(string password) =>
      (CreateQuickUnlockPrivateTokenInfoResultDeprecated result);

  // Deprecated.
  REMOVED_1@1(
      mojo_base.mojom.TimeDelta auth_token_lifetime) => (bool allowed);
};