blob: a3410337b0a23c78c07aa8d63f9debda34cdfe16 [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.
#include "chrome/browser/webauthn/authenticator_reference.h"
// Interface to observe mutations to an ObservableAuthenticatorList.
// This is currently only implemented by the the BleDeviceHoverListModel that is
// used by HoverListView to visualize an ObservableAuthenticatorList.
class AuthenticatorListObserver {
AuthenticatorListObserver() = default;
virtual ~AuthenticatorListObserver() = default;
virtual void OnAuthenticatorAdded(
const AuthenticatorReference& added_authenticator) = 0;
virtual void OnAuthenticatorRemoved(
const AuthenticatorReference& removed_authenticator) = 0;
virtual void OnAuthenticatorIdChanged(
const AuthenticatorReference& changed_authenticator,
base::StringPiece previous_id) = 0;
virtual void OnAuthenticatorPairingModeChanged(
const AuthenticatorReference& changed_authenticator) = 0;