OLD | NEW |
---|---|
(Empty) | |
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 | |
5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_ | |
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/basictypes.h" | |
11 | |
12 class Profile; | |
13 class SigninManagerBase; | |
14 | |
15 // Some chrome cloud services support managed users as well as normally | |
16 // authenticated users that sign in through SigninManager. To facilitate | |
17 // getting the "effective" username and account identifiers, services can | |
18 // use this class to wrap the SigninManager and return managed user account | |
19 // information when appropriate. | |
20 class ManagedUserSigninManagerWrapper { | |
21 public: | |
22 ManagedUserSigninManagerWrapper( | |
23 Profile* profile, SigninManagerBase* original); | |
Roger Tawa OOO till Jul 10th
2014/02/11 21:05:37
When is profile != original->profile() ? Seems li
tim (not reviewing)
2014/02/11 21:24:14
Good point! Done.
| |
24 ~ManagedUserSigninManagerWrapper(); | |
25 | |
26 std::string GetEffectiveUsername() const; | |
27 std::string GetAccountIdToUse() const; | |
28 | |
29 SigninManagerBase* GetOriginal(); | |
30 | |
31 private: | |
32 Profile* profile_; | |
33 SigninManagerBase* original_; | |
34 DISALLOW_COPY_AND_ASSIGN(ManagedUserSigninManagerWrapper); | |
35 }; | |
36 | |
37 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_ | |
OLD | NEW |