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

Side by Side Diff: chrome/browser/signin/signin_manager.h

Issue 15024007: Eliminate BrowserProcess dependency from sign-in production code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge LKGR Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // The signin manager encapsulates some functionality tracking 5 // The signin manager encapsulates some functionality tracking
6 // which user is signed in. See SigninManagerBase for full description of 6 // which user is signed in. See SigninManagerBase for full description of
7 // responsibilities. The class defined in this file provides functionality 7 // responsibilities. The class defined in this file provides functionality
8 // required by all platforms except Chrome OS. 8 // required by all platforms except Chrome OS.
9 // 9 //
10 // When a user is signed in, a ClientLogin request is run on their behalf. 10 // When a user is signed in, a ClientLogin request is run on their behalf.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // in-progress credentials to the new profile. 112 // in-progress credentials to the new profile.
113 virtual void CopyCredentialsFrom(const SigninManager& source); 113 virtual void CopyCredentialsFrom(const SigninManager& source);
114 114
115 // Sign a user out, removing the preference, erasing all keys 115 // Sign a user out, removing the preference, erasing all keys
116 // associated with the user, and canceling all auth in progress. 116 // associated with the user, and canceling all auth in progress.
117 virtual void SignOut(); 117 virtual void SignOut();
118 118
119 // On platforms where SigninManager is responsible for dealing with 119 // On platforms where SigninManager is responsible for dealing with
120 // invalid username policy updates, we need to check this during 120 // invalid username policy updates, we need to check this during
121 // initialization and sign the user out. 121 // initialization and sign the user out.
122 virtual void Initialize(Profile* profile) OVERRIDE; 122 virtual void Initialize(Profile* profile, PrefService* local_state) OVERRIDE;
123 123
124 // Invoked from an OAuthTokenFetchedCallback to complete user signin. 124 // Invoked from an OAuthTokenFetchedCallback to complete user signin.
125 virtual void CompletePendingSignin(); 125 virtual void CompletePendingSignin();
126 126
127 // Returns true if there's a signin in progress. 127 // Returns true if there's a signin in progress.
128 virtual bool AuthInProgress() const OVERRIDE; 128 virtual bool AuthInProgress() const OVERRIDE;
129 129
130 virtual bool IsSigninAllowed() const OVERRIDE; 130 virtual bool IsSigninAllowed() const OVERRIDE;
131 131
132 // Returns true if the passed username is allowed by policy. Virtual for 132 // Returns true if the passed username is allowed by policy. Virtual for
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 297
298 // Helper object to listen for changes to the signin allowed preference. 298 // Helper object to listen for changes to the signin allowed preference.
299 BooleanPrefMember signin_allowed_; 299 BooleanPrefMember signin_allowed_;
300 300
301 DISALLOW_COPY_AND_ASSIGN(SigninManager); 301 DISALLOW_COPY_AND_ASSIGN(SigninManager);
302 }; 302 };
303 303
304 #endif // !defined(OS_CHROMEOS) 304 #endif // !defined(OS_CHROMEOS)
305 305
306 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_H_ 306 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_global_error_unittest.cc ('k') | chrome/browser/signin/signin_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698