| OLD | NEW |
| 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 // The signin manager encapsulates some functionality tracking | 5 // The signin manager encapsulates some functionality tracking |
| 6 // which user is signed in. | 6 // which user is signed in. |
| 7 // | 7 // |
| 8 // **NOTE** on semantics of SigninManager: | 8 // **NOTE** on semantics of SigninManager: |
| 9 // | 9 // |
| 10 // Once a signin is successful, the username becomes "established" and will not | 10 // Once a signin is successful, the username becomes "established" and will not |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // (by platform / depending on StartBehavior). Bug 88109. | 102 // (by platform / depending on StartBehavior). Bug 88109. |
| 103 void SetAuthenticatedUsername(const std::string& username); | 103 void SetAuthenticatedUsername(const std::string& username); |
| 104 | 104 |
| 105 // Returns true if there is an authenticated user. | 105 // Returns true if there is an authenticated user. |
| 106 bool IsAuthenticated() const; | 106 bool IsAuthenticated() const; |
| 107 | 107 |
| 108 // Returns true if there's a signin in progress. | 108 // Returns true if there's a signin in progress. |
| 109 virtual bool AuthInProgress() const; | 109 virtual bool AuthInProgress() const; |
| 110 | 110 |
| 111 // KeyedService implementation. | 111 // KeyedService implementation. |
| 112 virtual void Shutdown() OVERRIDE; | 112 virtual void Shutdown() override; |
| 113 | 113 |
| 114 // Methods to register or remove observers of signin. | 114 // Methods to register or remove observers of signin. |
| 115 void AddObserver(Observer* observer); | 115 void AddObserver(Observer* observer); |
| 116 void RemoveObserver(Observer* observer); | 116 void RemoveObserver(Observer* observer); |
| 117 | 117 |
| 118 // Methods to register or remove SigninDiagnosticObservers. | 118 // Methods to register or remove SigninDiagnosticObservers. |
| 119 void AddSigninDiagnosticsObserver( | 119 void AddSigninDiagnosticsObserver( |
| 120 signin_internals_util::SigninDiagnosticsObserver* observer); | 120 signin_internals_util::SigninDiagnosticsObserver* observer); |
| 121 void RemoveSigninDiagnosticsObserver( | 121 void RemoveSigninDiagnosticsObserver( |
| 122 signin_internals_util::SigninDiagnosticsObserver* observer); | 122 signin_internals_util::SigninDiagnosticsObserver* observer); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 152 // The list of SigninDiagnosticObservers. | 152 // The list of SigninDiagnosticObservers. |
| 153 ObserverList<signin_internals_util::SigninDiagnosticsObserver, true> | 153 ObserverList<signin_internals_util::SigninDiagnosticsObserver, true> |
| 154 signin_diagnostics_observers_; | 154 signin_diagnostics_observers_; |
| 155 | 155 |
| 156 base::WeakPtrFactory<SigninManagerBase> weak_pointer_factory_; | 156 base::WeakPtrFactory<SigninManagerBase> weak_pointer_factory_; |
| 157 | 157 |
| 158 DISALLOW_COPY_AND_ASSIGN(SigninManagerBase); | 158 DISALLOW_COPY_AND_ASSIGN(SigninManagerBase); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_BASE_H_ | 161 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_SIGNIN_MANAGER_BASE_H_ |
| OLD | NEW |