remote_webauthn_delegated_state_change_notifier.cc 713 B

123456789101112131415161718192021
  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. #include "remoting/host/webauthn/remote_webauthn_delegated_state_change_notifier.h"
  5. namespace remoting {
  6. RemoteWebAuthnDelegatedStateChangeNotifier::
  7. RemoteWebAuthnDelegatedStateChangeNotifier(
  8. const base::RepeatingClosure& notify_state_change)
  9. : notify_state_change_(notify_state_change) {}
  10. RemoteWebAuthnDelegatedStateChangeNotifier::
  11. ~RemoteWebAuthnDelegatedStateChangeNotifier() = default;
  12. void RemoteWebAuthnDelegatedStateChangeNotifier::NotifyStateChange() {
  13. notify_state_change_.Run();
  14. }
  15. } // namespace remoting