Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: chrome/browser/sync/managed_user_signin_manager_wrapper.h

Issue 281433004: Cleanup: Pull Managed User logic out of ProfileSyncService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/sync/managed_user_signin_manager_wrapper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_
6 #define CHROME_BROWSER_SYNC_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_ 6 #define CHROME_BROWSER_SYNC_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 class Profile; 12 class Profile;
13 class SigninManagerBase; 13 class SigninManagerBase;
14 14
15 // Some chrome cloud services support managed users as well as normally 15 // Some chrome cloud services support managed users as well as normally
16 // authenticated users that sign in through SigninManager. To facilitate 16 // authenticated users that sign in through SigninManager. To facilitate
17 // getting the "effective" username and account identifiers, services can 17 // getting the "effective" username and account identifiers, services can
18 // use this class to wrap the SigninManager and return managed user account 18 // use this class to wrap the SigninManager and return managed user account
19 // information when appropriate. 19 // information when appropriate.
20 class ManagedUserSigninManagerWrapper { 20 class ManagedUserSigninManagerWrapper {
21 public: 21 public:
22 ManagedUserSigninManagerWrapper(Profile* profile, 22 ManagedUserSigninManagerWrapper(Profile* profile,
23 SigninManagerBase* original); 23 SigninManagerBase* original);
24 virtual ~ManagedUserSigninManagerWrapper(); 24 virtual ~ManagedUserSigninManagerWrapper();
25 25
26 virtual std::string GetEffectiveUsername() const; 26 virtual std::string GetEffectiveUsername() const;
27 virtual std::string GetAccountIdToUse() const; 27 virtual std::string GetAccountIdToUse() const;
28 28
29 virtual std::string GetSyncScopeToUse() const;
30
29 SigninManagerBase* GetOriginal(); 31 SigninManagerBase* GetOriginal();
30 32
31 private: 33 private:
32 Profile* profile_; 34 Profile* profile_;
33 SigninManagerBase* original_; 35 SigninManagerBase* original_;
34 DISALLOW_COPY_AND_ASSIGN(ManagedUserSigninManagerWrapper); 36 DISALLOW_COPY_AND_ASSIGN(ManagedUserSigninManagerWrapper);
35 }; 37 };
36 38
37 #endif // CHROME_BROWSER_SYNC_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_ 39 #endif // CHROME_BROWSER_SYNC_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/managed_user_signin_manager_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698