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"
11 #include "components/sync_driver/signin_manager_wrapper.h"
14 class SigninManagerBase
;
16 // Some chrome cloud services support supervised users as well as normally
17 // authenticated users that sign in through SigninManager. To facilitate
18 // getting the "effective" username and account identifiers, services can
19 // use this class to wrap the SigninManager and return supervised user account
20 // information when appropriate.
21 class SupervisedUserSigninManagerWrapper
: public SigninManagerWrapper
{
23 SupervisedUserSigninManagerWrapper(Profile
* profile
,
24 SigninManagerBase
* original
);
25 ~SupervisedUserSigninManagerWrapper() override
;
27 // SigninManagerWrapper implementation
28 std::string
GetEffectiveUsername() const override
;
29 std::string
GetAccountIdToUse() const override
;
30 std::string
GetSyncScopeToUse() const override
;
35 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSigninManagerWrapper
);
38 #endif // CHROME_BROWSER_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_