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

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

Issue 162443004: sync: final pieces to sync deferred initialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 6 years, 10 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
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_MANAGED_MODE_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_
6 #define CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_ 6 #define CHROME_BROWSER_MANAGED_MODE_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 SigninManagerBase; 12 class SigninManagerBase;
13 13
14 // Some chrome cloud services support managed users as well as normally 14 // Some chrome cloud services support managed users as well as normally
15 // authenticated users that sign in through SigninManager. To facilitate 15 // authenticated users that sign in through SigninManager. To facilitate
16 // getting the "effective" username and account identifiers, services can 16 // getting the "effective" username and account identifiers, services can
17 // use this class to wrap the SigninManager and return managed user account 17 // use this class to wrap the SigninManager and return managed user account
18 // information when appropriate. 18 // information when appropriate.
19 class ManagedUserSigninManagerWrapper { 19 class ManagedUserSigninManagerWrapper {
20 public: 20 public:
21 explicit ManagedUserSigninManagerWrapper(SigninManagerBase* original); 21 explicit ManagedUserSigninManagerWrapper(SigninManagerBase* original);
22 ~ManagedUserSigninManagerWrapper(); 22 virtual ~ManagedUserSigninManagerWrapper();
23 23
24 std::string GetEffectiveUsername() const; 24 virtual std::string GetEffectiveUsername() const;
25 std::string GetAccountIdToUse() const; 25 virtual std::string GetAccountIdToUse() const;
26 26
27 SigninManagerBase* GetOriginal(); 27 SigninManagerBase* GetOriginal();
28 28
29 private: 29 private:
30 SigninManagerBase* original_; 30 SigninManagerBase* original_;
31 DISALLOW_COPY_AND_ASSIGN(ManagedUserSigninManagerWrapper); 31 DISALLOW_COPY_AND_ASSIGN(ManagedUserSigninManagerWrapper);
32 }; 32 };
33 33
34 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_ 34 #endif // CHROME_BROWSER_MANAGED_MODE_MANAGED_USER_SIGNIN_MANAGER_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698