remove_user_delegate.h 850 B

1234567891011121314151617181920212223242526
  1. // Copyright 2014 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 COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_
  5. #define COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_
  6. #include "components/user_manager/user_manager_export.h"
  7. class AccountId;
  8. namespace user_manager {
  9. // Delegate to be used with |UserManager::RemoveUser|.
  10. class USER_MANAGER_EXPORT RemoveUserDelegate {
  11. public:
  12. // Called right before actual user removal process is initiated.
  13. virtual void OnBeforeUserRemoved(const AccountId& account_id) = 0;
  14. // Called right after user removal process has been initiated.
  15. virtual void OnUserRemoved(const AccountId& account_id) = 0;
  16. };
  17. } // namespace user_manager
  18. #endif // COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_