summaryrefslogtreecommitdiffstats
path: root/components/user_manager/remove_user_delegate.h
blob: 1077bda527fa6f11b4c82c43e7dd113d9d125bd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_
#define COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_

#include "components/user_manager/user_manager_export.h"

namespace user_manager {

// Delegate to be used with |UserManager::RemoveUser|.
class USER_MANAGER_EXPORT RemoveUserDelegate {
 public:
  // Called right before actual user removal process is initiated.
  virtual void OnBeforeUserRemoved(const std::string& username) = 0;

  // Called right after user removal process has been initiated.
  virtual void OnUserRemoved(const std::string& username) = 0;
};

}  // namespace user_manager

#endif  // COMPONENTS_USER_MANAGER_REMOVE_USER_DELEGATE_H_