[email protected] | 83d82d4 | 2014-05-16 02:04:42 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
[email protected] | 65f06915 | 2011-12-06 15:40:42 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 4d39078 | 2014-08-15 09:22:58 | [diff] [blame] | 5 | #ifndef COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ |
6 | #define COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ | ||||
[email protected] | 65f06915 | 2011-12-06 15:40:42 | [diff] [blame] | 7 | |
[email protected] | 4d39078 | 2014-08-15 09:22:58 | [diff] [blame] | 8 | #include "components/user_manager/user_manager_export.h" |
9 | |||||
alemate | c9662d8 | 2015-11-24 09:04:08 | [diff] [blame] | 10 | class AccountId; |
11 | |||||
[email protected] | 4d39078 | 2014-08-15 09:22:58 | [diff] [blame] | 12 | namespace user_manager { |
[email protected] | 65f06915 | 2011-12-06 15:40:42 | [diff] [blame] | 13 | |
14 | // Delegate to be used with |UserManager::RemoveUser|. | ||||
[email protected] | 4d39078 | 2014-08-15 09:22:58 | [diff] [blame] | 15 | class USER_MANAGER_EXPORT RemoveUserDelegate { |
[email protected] | 65f06915 | 2011-12-06 15:40:42 | [diff] [blame] | 16 | public: |
17 | // Called right before actual user removal process is initiated. | ||||
alemate | c9662d8 | 2015-11-24 09:04:08 | [diff] [blame] | 18 | virtual void OnBeforeUserRemoved(const AccountId& account_id) = 0; |
[email protected] | 65f06915 | 2011-12-06 15:40:42 | [diff] [blame] | 19 | |
20 | // Called right after user removal process has been initiated. | ||||
alemate | c9662d8 | 2015-11-24 09:04:08 | [diff] [blame] | 21 | virtual void OnUserRemoved(const AccountId& account_id) = 0; |
[email protected] | 65f06915 | 2011-12-06 15:40:42 | [diff] [blame] | 22 | }; |
23 | |||||
[email protected] | 4d39078 | 2014-08-15 09:22:58 | [diff] [blame] | 24 | } // namespace user_manager |
[email protected] | 65f06915 | 2011-12-06 15:40:42 | [diff] [blame] | 25 | |
[email protected] | 4d39078 | 2014-08-15 09:22:58 | [diff] [blame] | 26 | #endif // COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_ |