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.
5 #ifndef CHROME_BROWSER_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_
6 #define CHROME_BROWSER_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_
10 #include "base/basictypes.h"
13 class SigninManagerBase
;
15 // Some chrome cloud services support supervised 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 supervised user account
19 // information when appropriate.
20 class SupervisedUserSigninManagerWrapper
{
22 SupervisedUserSigninManagerWrapper(Profile
* profile
,
23 SigninManagerBase
* original
);
24 virtual ~SupervisedUserSigninManagerWrapper();
26 virtual std::string
GetEffectiveUsername() const;
27 virtual std::string
GetAccountIdToUse() const;
29 virtual std::string
GetSyncScopeToUse() const;
31 SigninManagerBase
* GetOriginal();
35 SigninManagerBase
* original_
;
36 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSigninManagerWrapper
);
39 #endif // CHROME_BROWSER_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_