Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / sync / supervised_user_signin_manager_wrapper.h
blobd5a018f2e9773a9f8d757c039acdb70c7dd10ef5
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_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "components/sync_driver/signin_manager_wrapper.h"
13 class Profile;
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 {
22 public:
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;
32 private:
33 Profile* profile_;
35 DISALLOW_COPY_AND_ASSIGN(SupervisedUserSigninManagerWrapper);
38 #endif // CHROME_BROWSER_SYNC_SUPERVISED_USER_SIGNIN_MANAGER_WRAPPER_H_