| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ |
| 6 #define COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ | 6 #define COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "components/user_manager/user_manager_export.h" | 8 #include "components/user_manager/user_manager_export.h" |
| 9 | 9 |
| 10 namespace user_manager { | 10 namespace user_manager { |
| 11 | 11 |
| 12 // Delegate to be used with |UserManager::RemoveUser|. | 12 // Delegate to be used with |UserManager::RemoveUser|. |
| 13 class USER_MANAGER_EXPORT RemoveUserDelegate { | 13 class USER_MANAGER_EXPORT RemoveUserDelegate { |
| 14 public: | 14 public: |
| 15 // Called right before actual user removal process is initiated. | 15 // Called right before actual user removal process is initiated. |
| 16 virtual void OnBeforeUserRemoved(const std::string& username) = 0; | 16 virtual void OnBeforeUserRemoved(const UserID& user_id) = 0; |
| 17 | 17 |
| 18 // Called right after user removal process has been initiated. | 18 // Called right after user removal process has been initiated. |
| 19 virtual void OnUserRemoved(const std::string& username) = 0; | 19 virtual void OnUserRemoved(const UserID& user_id) = 0; |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 } // namespace user_manager | 22 } // namespace user_manager |
| 23 | 23 |
| 24 #endif // COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ | 24 #endif // COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ |
| OLD | NEW |