remote_webauthn_state_change_notifier.h 907 B

1234567891011121314151617181920212223242526
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef REMOTING_HOST_WEBAUTHN_REMOTE_WEBAUTHN_STATE_CHANGE_NOTIFIER_H_
  5. #define REMOTING_HOST_WEBAUTHN_REMOTE_WEBAUTHN_STATE_CHANGE_NOTIFIER_H_
  6. namespace remoting {
  7. // Interface to notify possible changes in the state of whether WebAuthn
  8. // proxying is allowed in the current desktop session.
  9. class RemoteWebAuthnStateChangeNotifier {
  10. public:
  11. virtual ~RemoteWebAuthnStateChangeNotifier() = default;
  12. // Notifies that the remote WebAuthn state has possibly changed. Safe to call
  13. // this method when the state has not changed.
  14. virtual void NotifyStateChange() = 0;
  15. protected:
  16. RemoteWebAuthnStateChangeNotifier() = default;
  17. };
  18. } // namespace remoting
  19. #endif // REMOTING_HOST_WEBAUTHN_REMOTE_WEBAUTHN_STATE_CHANGE_NOTIFIER_H_